]> git.wh0rd.org - tt-rss.git/commitdiff
daemon common: use proper update condition checking for secondary-selected feeds
authorAndrew Dolgov <noreply@fakecake.org>
Fri, 1 Apr 2016 15:54:53 +0000 (18:54 +0300)
committerAndrew Dolgov <noreply@fakecake.org>
Fri, 1 Apr 2016 15:54:53 +0000 (18:54 +0300)
include/rssfuncs.php

index bf603567729b791c33ef8a23f6651bf97c8efc32..27e8ffc14c947fea1a42b9681095e5ff8380fdd7 100755 (executable)
                                ttrss_users.id = ttrss_user_prefs.owner_uid AND
                                ttrss_user_prefs.pref_name = 'DEFAULT_UPDATE_INTERVAL' AND
                                ttrss_user_prefs.profile IS NULL AND
-                               feed_url = '".db_escape_string($feed)."' AND
-                               (ttrss_feeds.update_interval > 0 OR
-                                       ttrss_user_prefs.value != '-1')
+                               feed_url = '".db_escape_string($feed)."'
+                               $update_limit_qpart
                                $login_thresh_qpart
                        ORDER BY ttrss_feeds.id $query_limit");