]> git.wh0rd.org Git - tt-rss.git/commitdiff
misc bugfixes in op=viewfeed
authorAndrew Dolgov <fox@bah.spb.su>
Thu, 8 Sep 2005 12:50:36 +0000 (13:50 +0100)
committerAndrew Dolgov <fox@bah.spb.su>
Thu, 8 Sep 2005 12:50:36 +0000 (13:50 +0100)
backend.php

index f4928971c7736fb4309add9f861a7d1cc5f73769..8c566cee4a32305ed81b9caf9d628dac6b789e9c 100644 (file)
                if ($feed >= 0) {
 
                        $result = db_query($link, "SELECT count(id) as unread FROM ttrss_entries
-                               WHERE feed_id = ttrss_feeds.id AND $query_strategy_part
+                               WHERE feed_id = '$feed' AND $query_strategy_part
                                AND unread = true");                    
-
+                       
                        $unread = db_fetch_result($result, 0, "unread");
 
                } else if ($feed == -1) {