]> git.mxchange.org Git - friendica.git/blobdiff - mod/community.php
added more curyl braces + spaces between "if" and brace
[friendica.git] / mod / community.php
index c8d1e0c9ddf10505661db79551ea36464b789470..c8f04d8bd619e67bea2afe626065c20b0c1e3a60 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;
        }