From 15d8bd7dbfaad912a1941cfefe6f9c10fb15fc06 Mon Sep 17 00:00:00 2001 From: Andrew Dolgov Date: Sat, 16 Nov 2013 11:00:56 +0400 Subject: [PATCH] fix catchup older than X for labels category --- include/functions.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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) { -- 2.39.5