getLabelCounters: fix for read labels

This commit is contained in:
Andrew Dolgov 2009-01-19 04:35:33 +01:00
parent 3584cb119e
commit d2b1c99be6
1 changed files with 3 additions and 4 deletions

View File

@ -2641,10 +2641,9 @@
LEFT JOIN ttrss_user_labels2 ON (label_id = ttrss_labels2.id) LEFT JOIN ttrss_user_labels2 ON (label_id = ttrss_labels2.id)
LEFT JOIN ttrss_user_entries ON (ref_id = article_id AND LEFT JOIN ttrss_user_entries ON (ref_id = article_id AND
unread = true AND unread = true AND
ttrss_user_entries.owner_uid = '$owner_uid'),ttrss_feeds ttrss_user_entries.owner_uid = '$owner_uid')
WHERE ttrss_feeds.id = feed_id AND LEFT JOIN ttrss_feeds ON (ttrss_feeds.id = feed_id AND hidden = false)
hidden = false AND WHERE ttrss_labels2.owner_uid = '$owner_uid'
ttrss_labels2.owner_uid = '$owner_uid'
GROUP BY ttrss_labels2.id, caption"); GROUP BY ttrss_labels2.id, caption");
while ($line = db_fetch_assoc($result)) { while ($line = db_fetch_assoc($result)) {