From: Andrew Dolgov Date: Sat, 16 Nov 2013 07:00:56 +0000 (+0400) Subject: fix catchup older than X for labels category X-Git-Tag: 1.11~20 X-Git-Url: https://git.wh0rd.org/?a=commitdiff_plain;h=15d8bd7dbfaad912a1941cfefe6f9c10fb15fc06;p=tt-rss.git fix catchup older than X for labels category --- diff --git a/include/functions.php b/include/functions.php index 565ff0e5..28a51b23 100644 --- a/include/functions.php +++ b/include/functions.php @@ -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) {