]> git.wh0rd.org Git - tt-rss.git/commitdiff
fix catchup older than X for labels category
authorAndrew Dolgov <fox@madoka.volgo-balt.ru>
Sat, 16 Nov 2013 07:00:56 +0000 (11:00 +0400)
committerAndrew Dolgov <fox@madoka.volgo-balt.ru>
Sat, 16 Nov 2013 07:00:56 +0000 (11:00 +0400)
include/functions.php

index 565ff0e55ffa80395df31fea66252d4d8c0d2af4..28a51b232a0778d9caf6b83933734962bf22833a 100644 (file)
 
                                                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) {