]> git.mxchange.org Git - friendica.git/blobdiff - include/ForumManager.php
Fixes E_WARNING from foreach() because count() seem to return TRUE even when $r is...
[friendica.git] / include / ForumManager.php
index 6fede0204d945f3901f91c266ab4b7c1b38b1680..bbf881c9d037526cd8a74d1b05a25459698a13a3 100644 (file)
@@ -86,7 +86,7 @@ class ForumManager {
                $total = count($contacts);
                $visible_forums = 10;
 
-               if(count($contacts)) {
+               if(is_filled_array($contacts)) {
 
                        $id = 0;