mirror of
https://git.tt-rss.org/git/tt-rss.git
synced 2025-12-18 19:11:29 +00:00
Pref_Feeds:calculate_children_count - fix operator precedence
This commit is contained in:
@@ -228,7 +228,7 @@ class Pref_Feeds extends Handler_Protected {
|
|||||||
if ($num_children > 0 || $show_empty_cats)
|
if ($num_children > 0 || $show_empty_cats)
|
||||||
array_push($root['items'], $cat);
|
array_push($root['items'], $cat);
|
||||||
|
|
||||||
$root['param'] += count($cat['items']);
|
//$root['param'] += count($cat['items']);
|
||||||
}
|
}
|
||||||
|
|
||||||
/* Uncategorized is a special case */
|
/* Uncategorized is a special case */
|
||||||
@@ -1267,7 +1267,7 @@ class Pref_Feeds extends Handler_Protected {
|
|||||||
$c = 0;
|
$c = 0;
|
||||||
|
|
||||||
foreach ($cat['items'] ?? [] as $child) {
|
foreach ($cat['items'] ?? [] as $child) {
|
||||||
if ($child['type'] ?? '' == 'category') {
|
if (($child['type'] ?? '') == 'category') {
|
||||||
$c += $this->calculate_children_count($child);
|
$c += $this->calculate_children_count($child);
|
||||||
} else {
|
} else {
|
||||||
$c += 1;
|
$c += 1;
|
||||||
|
|||||||
Reference in New Issue
Block a user