summaryrefslogtreecommitdiff
path: root/functions.php
diff options
context:
space:
mode:
authorAndrew Dolgov <[email protected]>2009-12-29 16:28:10 +0300
committerAndrew Dolgov <[email protected]>2009-12-29 16:28:10 +0300
commit59e15af4589137bcb32f486fe5ad56f48518d4e9 (patch)
treec176fb040dfdb796df0e22339e8f0143f650a02b /functions.php
parenta545dc31a403ef6130f78f089441bc06f33d2ed3 (diff)
getCategoryUnread: properly calculate counts for cat -1
Diffstat (limited to 'functions.php')
-rw-r--r--functions.php2
1 files changed, 1 insertions, 1 deletions
diff --git a/functions.php b/functions.php
index 6621b361e..1e73dcc85 100644
--- a/functions.php
+++ b/functions.php
@@ -2397,7 +2397,7 @@
return $unread;
} 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) {
$result = db_query($link, "