From: Andrew Dolgov Date: Wed, 29 Aug 2007 14:37:30 +0000 (+0100) Subject: getFeedUnread: fix for tags X-Git-Tag: 1.2.15~16 X-Git-Url: https://git.wh0rd.org/?a=commitdiff_plain;h=828f22b7ebc99fb0b375166643556e695dcaf91f;p=tt-rss.git getFeedUnread: fix for tags --- diff --git a/functions.php b/functions.php index ba0fd6b1..d37f4bdf 100644 --- a/functions.php +++ b/functions.php @@ -2115,7 +2115,7 @@ $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"]); }