From: Roland Haeder <roland@mxchange.org>
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=24cbac1a5b6b10882238253822794efca1fb2be3;p=friendica.git

Also use is_filled_array() here, too. if $contacts is FALSE count() issues are E_WARNING

Signed-off-by: Roland Haeder <roland@mxchange.org>
---

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;