PHP 7.2 silence some warnings

This commit is contained in:
Mario Vavti
2017-12-04 08:56:01 +01:00
parent 11b03ca4d2
commit 5c12b56e87
2 changed files with 5 additions and 5 deletions

View File

@@ -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);
}
}