Skip to content
Snippets Groups Projects
Commit 5c602544 authored by Andrew Dolgov's avatar Andrew Dolgov
Browse files

Pref_Feeds:calculate_children_count - fix operator precedence

parent 08081231
No related branches found
No related tags found
No related merge requests found
......@@ -228,7 +228,7 @@ class Pref_Feeds extends Handler_Protected {
if ($num_children > 0 || $show_empty_cats)
array_push($root['items'], $cat);
$root['param'] += count($cat['items']);
//$root['param'] += count($cat['items']);
}
/* Uncategorized is a special case */
......@@ -1267,7 +1267,7 @@ class Pref_Feeds extends Handler_Protected {
$c = 0;
foreach ($cat['items'] ?? [] as $child) {
if ($child['type'] ?? '' == 'category') {
if (($child['type'] ?? '') == 'category') {
$c += $this->calculate_children_count($child);
} else {
$c += 1;
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment