summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAndrew Dolgov <[email protected]>2007-08-29 15:37:30 +0100
committerAndrew Dolgov <[email protected]>2007-08-29 15:37:30 +0100
commit828f22b7ebc99fb0b375166643556e695dcaf91f (patch)
treeb3a55bcfef76df12dd6457f462376d053f3ae5f5
parent4764c27ef8ca2f6c3e27b2a9686708e91bcccc32 (diff)
getFeedUnread: fix for tags
-rw-r--r--functions.php2
1 files changed, 1 insertions, 1 deletions
diff --git a/functions.php b/functions.php
index ba0fd6b1d..d37f4bdf4 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"]);
}