]> git.wh0rd.org Git - tt-rss.git/commitdiff
daemon: do not schedule user-disabled feeds
authorAndrew Dolgov <fox@madoka.volgo-balt.ru>
Sun, 31 Mar 2013 10:24:13 +0000 (14:24 +0400)
committerAndrew Dolgov <fox@madoka.volgo-balt.ru>
Sun, 31 Mar 2013 10:24:13 +0000 (14:24 +0400)
include/rssfuncs.php

index 0c5a0153bfddc0cf3ee28303139ddb6a13a68dc0..36a4ced256a680aed169cf8768d3832c37440824 100644 (file)
@@ -77,6 +77,7 @@
                if (DB_TYPE == "pgsql") {
                        $update_limit_qpart = "AND ((
                                        ttrss_feeds.update_interval = 0
+                                       AND CAST(ttrss_user_prefs.value AS INTEGER) != -1
                                        AND ttrss_feeds.last_updated < NOW() - CAST((ttrss_user_prefs.value || ' minutes') AS INTERVAL)
                                ) OR (
                                        ttrss_feeds.update_interval > 0
@@ -86,6 +87,7 @@
                } else {
                        $update_limit_qpart = "AND ((
                                        ttrss_feeds.update_interval = 0
+                                       AND CONVERT(ttrss_user_prefs.value, SIGNED INTEGER) != -1
                                        AND ttrss_feeds.last_updated < DATE_SUB(NOW(), INTERVAL CONVERT(ttrss_user_prefs.value, SIGNED INTEGER) MINUTE)
                                ) OR (
                                        ttrss_feeds.update_interval > 0