diff options
author | Andrew Dolgov <[email protected]> | 2013-11-16 11:00:56 +0400 |
---|---|---|
committer | Andrew Dolgov <[email protected]> | 2013-11-16 11:00:56 +0400 |
commit | 15d8bd7dbfaad912a1941cfefe6f9c10fb15fc06 (patch) | |
tree | f55497dae175467be9f078de0a23a30602438e27 /include/functions.php | |
parent | c6d970b857d193cee29c26ac553d8313fbafbea2 (diff) |
fix catchup older than X for labels category
Diffstat (limited to 'include/functions.php')
-rw-r--r-- | include/functions.php | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/include/functions.php b/include/functions.php index 565ff0e55..28a51b232 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) { |