getCategoryUnread: properly calculate counts for cat -1

This commit is contained in:
Andrew Dolgov 2009-12-29 16:28:10 +03:00
parent a545dc31a4
commit 59e15af458
1 changed files with 1 additions and 1 deletions

View File

@ -2397,7 +2397,7 @@
return $unread; return $unread;
} else if ($cat == -1) { } else if ($cat == -1) {
return getFeedUnread($link, -1) + getFeedUnread($link, -2) + getFeedUnread($link, -3); return getFeedUnread($link, -1) + getFeedUnread($link, -2) + getFeedUnread($link, -3) + getFeedUnread($link, 0);
} else if ($cat == -2) { } else if ($cat == -2) {
$result = db_query($link, " $result = db_query($link, "