diff options
author | Andrew Dolgov <[email protected]> | 2020-01-25 09:57:28 +0300 |
---|---|---|
committer | Andrew Dolgov <[email protected]> | 2020-01-25 09:57:28 +0300 |
commit | a6ced361890ab44e049369ac63a74b63f8820b7e (patch) | |
tree | 3c8e00310dcdc5c17bae1e11eab484a466eb3c9f /classes/counters.php | |
parent | deefa901abecef39f1955436af213d9a64d65160 (diff) |
getCategoryCounters: properly calculate counters for child subcategory entries
getCategoryUnread: cleanup
Diffstat (limited to 'classes/counters.php')
-rw-r--r-- | classes/counters.php | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/classes/counters.php b/classes/counters.php index a0e39ea52..b65f0adeb 100644 --- a/classes/counters.php +++ b/classes/counters.php @@ -48,7 +48,7 @@ class Counters { while ($line = $sth->fetch()) { if ($line["num_children"] > 0) { - $child_counter = Feeds::getCategoryChildrenUnread($line["cat_id"], $_SESSION["uid"]); + $child_counter = Feeds::getCategoryChildrenUnread($line["id"], $_SESSION["uid"]); } else { $child_counter = 0; } |