Browse Source

Fix count() warning in Object\Post

pull/4909/head
Hypolite Petovan 4 years ago
parent
commit
9b052b5ea8
  1. 2
      src/Object/Post.php

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

Loading…
Cancel
Save