1
0
mirror of https://git.tt-rss.org/git/tt-rss.git synced 2025-12-13 15:25:59 +00:00

getCategoryCounters: properly calculate counters for child subcategory entries

getCategoryUnread: cleanup
This commit is contained in:
Andrew Dolgov
2020-01-25 09:57:28 +03:00
parent deefa901ab
commit a6ced36189
2 changed files with 15 additions and 35 deletions

View File

@@ -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;
}