getCategoryUnread: don't return unread counters for Special category because it doesn't make a lot of sense to do so

This commit is contained in:
Andrew Dolgov 2020-01-24 15:54:01 +03:00
parent 6f625aa8aa
commit a64b8a7fdb
1 changed files with 1 additions and 1 deletions

View File

@ -1330,7 +1330,7 @@ class Feeds extends Handler_Protected {
return $unread; return $unread;
} else if ($cat == -1) { } else if ($cat == -1) {
return getFeedUnread(-1) + getFeedUnread(-2) + getFeedUnread(-3) + getFeedUnread(0); return 0;
} else if ($cat == -2) { } else if ($cat == -2) {
$sth = $pdo->prepare("SELECT COUNT(unread) AS unread FROM $sth = $pdo->prepare("SELECT COUNT(unread) AS unread FROM