Fix count() warning in Object\Post

This commit is contained in:
Hypolite Petovan 2018-04-23 00:02:18 -04:00
parent b0564ea40d
commit 9b052b5ea8

View 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']) {