]> git.wh0rd.org Git - tt-rss.git/commitdiff
getFeedUnread: fix for tags
authorAndrew Dolgov <fox@bah.spb.su>
Wed, 29 Aug 2007 14:37:30 +0000 (15:37 +0100)
committerAndrew Dolgov <fox@bah.spb.su>
Wed, 29 Aug 2007 14:37:30 +0000 (15:37 +0100)
functions.php

index ba0fd6b1d590bbd4ff89aa8659356b19a5c122ca..d37f4bdf4f6c1226db19a7b4ead95dc3483aa708 100644 (file)
                
                        $result = db_query($link, "SELECT COUNT(post_int_id) AS unread
                                FROM ttrss_tags,ttrss_user_entries,ttrss_entries 
-                               WHERE tag_name = '$feed' AND post_int_id = int_id AND ref_id = id 
+                               WHERE tag_name = '$feed' AND post_int_id = int_id AND ref_id = ttrss_entries.id 
                                AND unread = true AND $age_qpart AND
                                        ttrss_tags.owner_uid = " . $_SESSION["uid"]);
                }