X-Git-Url: https://git.mxchange.org/?a=blobdiff_plain;f=mod%2Fcommunity.php;h=391d9dfd43e1c429239bfb8baa3c8005fc701210;hb=6a8a36f12d00f35004fbb034972ca87dd1a3c4f5;hp=c8d1e0c9ddf10505661db79551ea36464b789470;hpb=293436e5fd5110220c969513858dbb979f1f35d3;p=friendica.git diff --git a/mod/community.php b/mod/community.php index c8d1e0c9dd..391d9dfd43 100644 --- a/mod/community.php +++ b/mod/community.php @@ -59,7 +59,7 @@ function community_content(&$a, $update = 0) { AND `item`.`private` = 0 AND `item`.`wall` = 1" ); - if(count($r)) + if(dbm::is_result($r)) $a->set_pager_total($r[0]['total']); if(! $r[0]['total']) { @@ -71,7 +71,7 @@ function community_content(&$a, $update = 0) { $r = community_getitems($a->pager['start'], $a->pager['itemspage']); - if(! count($r)) { + if(! dbm::is_result($r)) { info( t('No results.') . EOL); return $o; }