]> git.wh0rd.org Git - tt-rss.git/commitdiff
getCategoryUnread: properly calculate counts for cat -1
authorAndrew Dolgov <fox@bah.org.ru>
Tue, 29 Dec 2009 13:28:10 +0000 (16:28 +0300)
committerAndrew Dolgov <fox@bah.org.ru>
Tue, 29 Dec 2009 13:28:10 +0000 (16:28 +0300)
functions.php

index 6621b361ee2a6de9073e93f1f2ee1cf4efa2fcd6..1e73dcc85b3909a2b0ca77279233c136afad6f08 100644 (file)
        
                        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, "