aboutsummaryrefslogtreecommitdiffstats
path: root/include/conversation.php
diff options
context:
space:
mode:
authorMario Vavti <mario@mariovavti.com>2017-12-04 08:56:01 +0100
committerMario Vavti <mario@mariovavti.com>2017-12-04 08:56:01 +0100
commit5c12b56e87982be11ae8cb1f10182d354db47fa7 (patch)
tree7c637710b5463c48d6163acb5e59d815f1939f1e /include/conversation.php
parent11b03ca4d287b85c6094a343e917e2f561cc10ba (diff)
downloadvolse-hubzilla-5c12b56e87982be11ae8cb1f10182d354db47fa7.tar.gz
volse-hubzilla-5c12b56e87982be11ae8cb1f10182d354db47fa7.tar.bz2
volse-hubzilla-5c12b56e87982be11ae8cb1f10182d354db47fa7.zip
PHP 7.2 silence some warnings
Diffstat (limited to 'include/conversation.php')
-rw-r--r--include/conversation.php4
1 files changed, 2 insertions, 2 deletions
diff --git a/include/conversation.php b/include/conversation.php
index 841a00d85..fc0942474 100644
--- a/include/conversation.php
+++ b/include/conversation.php
@@ -1473,7 +1473,7 @@ function sort_item_children($items) {
$result = $items;
usort($result,'sort_thr_created_rev');
foreach($result as $k => $i) {
- if(count($result[$k]['children'])) {
+ if($result[$k]['children']) {
$result[$k]['children'] = sort_item_children($result[$k]['children']);
}
}
@@ -1483,7 +1483,7 @@ function sort_item_children($items) {
function add_children_to_list($children, &$arr) {
foreach($children as $y) {
$arr[] = $y;
- if(count($y['children']))
+ if($y['children'])
add_children_to_list($y['children'], $arr);
}
}