From: Roland Haeder Date: Tue, 1 Mar 2016 13:38:02 +0000 (+0100) Subject: Also use is_filled_array() here, too. if $contacts is FALSE count() issues are E_WARNING X-Git-Url: https://git.mxchange.org/?a=commitdiff_plain;h=f53af9732c18fb81f7c3eb95b3e3d2356f840d87;p=friendica.git Also use is_filled_array() here, too. if $contacts is FALSE count() issues are E_WARNING Signed-off-by: Roland Haeder --- diff --git a/include/ForumManager.php b/include/ForumManager.php index 6fede0204d..bbf881c9d0 100644 --- a/include/ForumManager.php +++ b/include/ForumManager.php @@ -86,7 +86,7 @@ class ForumManager { $total = count($contacts); $visible_forums = 10; - if(count($contacts)) { + if(is_filled_array($contacts)) { $id = 0;