https://reisub.nsupdate.info/git
/
friendica.git
/
.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
b0564ea
)
Fix count() warning in Object\Post
author
Hypolite Petovan
<mrpetovan@gmail.com>
Mon, 23 Apr 2018 04:02:18 +0000
(
00:02
-0400)
committer
Hypolite Petovan
<mrpetovan@gmail.com>
Mon, 23 Apr 2018 04:02:18 +0000
(
00:02
-0400)
src/Object/Post.php
patch
|
blob
|
history
diff --git
a/src/Object/Post.php
b/src/Object/Post.php
index
86e1414
..
820730a
100644
(file)
--- a/
src/Object/Post.php
+++ b/
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']) {