]> git.mxchange.org Git - friendica.git/commitdiff
Fix count() warning in Object\Post
authorHypolite Petovan <mrpetovan@gmail.com>
Mon, 23 Apr 2018 04:02:18 +0000 (00:02 -0400)
committerHypolite Petovan <mrpetovan@gmail.com>
Mon, 23 Apr 2018 04:02:18 +0000 (00:02 -0400)
src/Object/Post.php

index 86e1414678e7bb7e76b9675139618a08d893bb0a..820730a32b9e01a4942af6b24c3eeca6a82d3eb3 100644 (file)
@@ -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']) {