summaryrefslogtreecommitdiff
path: root/classes/counters.php
diff options
context:
space:
mode:
authorAndrew Dolgov <[email protected]>2020-01-25 09:57:28 +0300
committerAndrew Dolgov <[email protected]>2020-01-25 09:57:28 +0300
commita6ced361890ab44e049369ac63a74b63f8820b7e (patch)
tree3c8e00310dcdc5c17bae1e11eab484a466eb3c9f /classes/counters.php
parentdeefa901abecef39f1955436af213d9a64d65160 (diff)
getCategoryCounters: properly calculate counters for child subcategory entries
getCategoryUnread: cleanup
Diffstat (limited to 'classes/counters.php')
-rw-r--r--classes/counters.php2
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;
}