Browse Source

Fix count() warning in Object\Post

pull/4909/head
Hypolite Petovan 2 years ago
parent
commit
9b052b5ea8
1 changed files with 1 additions and 1 deletions
  1. +1
    -1
      src/Object/Post.php

+ 1
- 1
src/Object/Post.php 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']) {


Loading…
Cancel
Save