dbesc($nick)
);
- if(! count($r))
+ if (! dbm::is_result($r)) {
return;
+ }
$a->data['user'] = $r[0];
$a->profile_uid = $r[0]['uid'];
dbesc(NETWORK_DIASPORA),
dbesc(NETWORK_OSTATUS)
);
- if(count($r))
+ if (dbm::is_result($r))
$a->set_pager_total($r[0]['total']);
$r = q("SELECT * FROM `contact`
intval($a->pager['start']),
intval($a->pager['itemspage'])
);
- if(!count($r)) {
+ if (!dbm::is_result($r)) {
info(t('No contacts.').EOL);
return $o;
}