]> git.mxchange.org Git - friendica.git/blobdiff - mod/community.php
More usage of dbm::is_result($r) instead of count($r):
[friendica.git] / mod / community.php
index c8d1e0c9ddf10505661db79551ea36464b789470..391d9dfd43e1c429239bfb8baa3c8005fc701210 100644 (file)
@@ -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;
        }