Fix count() warning in Object\Post
This commit is contained in:
parent
b0564ea40d
commit
9b052b5ea8
1 changed files with 1 additions and 1 deletions
|
@ -78,7 +78,7 @@ class Post extends BaseObject
|
||||||
}
|
}
|
||||||
|
|
||||||
// Prepare the children
|
// Prepare the children
|
||||||
if (count($data['children'])) {
|
if (!empty($data['children'])) {
|
||||||
foreach ($data['children'] as $item) {
|
foreach ($data['children'] as $item) {
|
||||||
// Only add will be displayed
|
// Only add will be displayed
|
||||||
if ($item['network'] === NETWORK_MAIL && local_user() != $item['uid']) {
|
if ($item['network'] === NETWORK_MAIL && local_user() != $item['uid']) {
|
||||||
|
|
Loading…
Reference in a new issue