summaryrefslogtreecommitdiff
path: root/classes/pref/feeds.php
diff options
context:
space:
mode:
authorAndrew Dolgov <[email protected]>2021-08-23 10:45:34 +0300
committerAndrew Dolgov <[email protected]>2021-08-23 10:45:34 +0300
commit5c6025447416616f47ab7b22d179d2b27a2c3eba (patch)
treecd9bf229c2a3db3b29db2d9886f41d3b4468093e /classes/pref/feeds.php
parent080812317939cd9af2f778c15ea4f769fae30b28 (diff)
Pref_Feeds:calculate_children_count - fix operator precedence
Diffstat (limited to 'classes/pref/feeds.php')
-rwxr-xr-xclasses/pref/feeds.php4
1 files changed, 2 insertions, 2 deletions
diff --git a/classes/pref/feeds.php b/classes/pref/feeds.php
index f53ccf2f5..d2ea664ce 100755
--- a/classes/pref/feeds.php
+++ b/classes/pref/feeds.php
@@ -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;