where `user`.`nickname` = '%s' and `profile`.`is-default` = 1 limit 1",
dbesc($user)
);
- if(! count($r) || $r[0]['hidewall'] || $r[0]['hide-friends'])
+ if(! dbm::is_result($r) || $r[0]['hidewall'] || $r[0]['hide-friends'])
http_status_exit(404);
$user = $r[0];
dbesc(NETWORK_STATUSNET)
);
}
- if(count($r))
+ if(dbm::is_result($r))
$totalResults = intval($r[0]['total']);
else
$totalResults = 0;
}
if(is_array($r)) {
- if(count($r)) {
+ if(count($r) > 0) {
foreach($r as $rr) {
if (!isset($rr['generation'])) {
if ($global)