From a6ced361890ab44e049369ac63a74b63f8820b7e Mon Sep 17 00:00:00 2001 From: Andrew Dolgov Date: Sat, 25 Jan 2020 09:57:28 +0300 Subject: getCategoryCounters: properly calculate counters for child subcategory entries getCategoryUnread: cleanup --- classes/counters.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'classes/counters.php') 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; } -- cgit v1.2.3-54-g00ecf