diff options
author | all <all@hoover> | 2013-03-30 09:43:37 +0100 |
---|---|---|
committer | all <all@hoover> | 2013-03-30 09:43:37 +0100 |
commit | bca1cfbb9580d3ed295f7d93bbf4dce00eae8456 (patch) | |
tree | 15b704b1f7305d8a9a107ef638b517782877ec97 /include/rssfuncs.php | |
parent | 05e62b6726e7d171de5664aee65afb575a9a9ba3 (diff) |
Avoid updating feed based on user pref DEFAULT_UPDATE_INTERVAL if it is set to -1 (no update)
Diffstat (limited to 'include/rssfuncs.php')
-rw-r--r-- | include/rssfuncs.php | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/include/rssfuncs.php b/include/rssfuncs.php index e82e94b09..fcf897461 100644 --- a/include/rssfuncs.php +++ b/include/rssfuncs.php @@ -77,6 +77,7 @@ if (DB_TYPE == "pgsql") { $update_limit_qpart = "AND (( ttrss_feeds.update_interval = 0 + AND ttrss_user_prefs.value > 0 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 ttrss_user_prefs.value > 0 AND ttrss_feeds.last_updated < DATE_SUB(NOW(), INTERVAL CONVERT(ttrss_user_prefs.value, SIGNED INTEGER) MINUTE) ) OR ( ttrss_feeds.update_interval > 0 |