From: Hypolite Petovan Date: Mon, 23 Apr 2018 04:02:18 +0000 (-0400) Subject: Fix count() warning in Object\Post X-Git-Url: https://git.mxchange.org/?a=commitdiff_plain;h=9b052b5ea8c576ffc6710392831cc63a48b11538;p=friendica.git Fix count() warning in Object\Post --- diff --git a/src/Object/Post.php b/src/Object/Post.php index 86e1414678..820730a32b 100644 --- a/src/Object/Post.php +++ b/src/Object/Post.php @@ -78,7 +78,7 @@ class Post extends BaseObject } // Prepare the children - if (count($data['children'])) { + if (!empty($data['children'])) { foreach ($data['children'] as $item) { // Only add will be displayed if ($item['network'] === NETWORK_MAIL && local_user() != $item['uid']) {