X-Git-Url: https://git.mxchange.org/?a=blobdiff_plain;f=mod%2Fpoco.php;h=94dac77eef824932d4cb475a71e99f03cb6060b8;hb=6a8a36f12d00f35004fbb034972ca87dd1a3c4f5;hp=1ec5b2d4e1b07e1c91157cfadc31c28e59c30d14;hpb=293436e5fd5110220c969513858dbb979f1f35d3;p=friendica.git diff --git a/mod/poco.php b/mod/poco.php index 1ec5b2d4e1..94dac77eef 100644 --- a/mod/poco.php +++ b/mod/poco.php @@ -45,7 +45,7 @@ function poco_init(&$a) { 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]; @@ -83,7 +83,7 @@ function poco_init(&$a) { dbesc(NETWORK_STATUSNET) ); } - if(count($r)) + if(dbm::is_result($r)) $totalResults = intval($r[0]['total']); else $totalResults = 0; @@ -173,7 +173,7 @@ function poco_init(&$a) { } if(is_array($r)) { - if(count($r)) { + if(count($r) > 0) { foreach($r as $rr) { if (!isset($rr['generation'])) { if ($global)