]> git.mxchange.org Git - friendica.git/commitdiff
Also use is_filled_array() here, too. if $contacts is FALSE count() issues are E_WARNING
authorRoland Haeder <roland@mxchange.org>
Tue, 1 Mar 2016 13:38:02 +0000 (14:38 +0100)
committerRoland Haeder <roland@mxchange.org>
Tue, 1 Mar 2016 13:53:35 +0000 (14:53 +0100)
Signed-off-by: Roland Haeder <roland@mxchange.org>
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;