);
$str = '';
- if(count($r))
+ if(dbm::is_result($r))
foreach($r as $rr)
$str .= '<' . $rr['id'] . '>';
if(strlen($str))
intval($group),
intval($_SESSION['uid'])
);
- if(! count($r)) {
+ if(! dbm::is_result($r)) {
if($update)
killme();
notice( t('No such group') . EOL );
AND `blocked` = 0 AND `pending` = 0 LIMIT 1",
intval($cid)
);
- if(count($r)) {
+ if(dbm::is_result($r)) {
$sql_extra = " AND `item`.`parent` IN ( SELECT DISTINCT(`parent`) FROM `item` WHERE 1 $sql_options AND `contact-id` = " . intval($cid) . " and deleted = 0 ) ";
}
$parents_arr = array();
$parents_str = '';
- if(count($r)) {
+ if(dbm::is_result($r)) {
foreach($r as $rr)
if(! in_array($rr['item_id'],$parents_arr))
$parents_arr[] = $rr['item_id'];
intval($item['uid']),
intval($item['id'])
);
- if (count($r)) {
+ if (dbm::is_result($r)) {
$ignore = array(
'do' => t("ignore thread"),
'undo' => t("unignore thread"),