fix catchup older than X for labels category

This commit is contained in:
Andrew Dolgov 2013-11-16 11:00:56 +04:00
parent c6d970b857
commit 15d8bd7dbf
1 changed files with 2 additions and 2 deletions

View File

@ -1144,8 +1144,8 @@
db_query("UPDATE ttrss_user_entries
SET unread = false,last_read = NOW() WHERE (SELECT COUNT(*)
FROM ttrss_user_labels2 WHERE article_id = ref_id) > 0
AND unread = true AND $date_qpart AND owner_uid = $owner_uid");
FROM ttrss_user_labels2, ttrss_entries WHERE article_id = ref_id AND id = ref_id AND $date_qpart) > 0
AND unread = true AND owner_uid = $owner_uid");
}
} else if ($feed > 0) {