diff options
author | Andrew Dolgov <[email protected]> | 2006-02-12 06:34:27 +0100 |
---|---|---|
committer | Andrew Dolgov <[email protected]> | 2006-02-12 06:34:27 +0100 |
commit | c1e202b79c6a17c9d2117725322baa5b8c662765 (patch) | |
tree | ceccbb043f0a333b88d0c2626bc46d5940c2ad32 /functions.php | |
parent | b8a6ff3044764eeb631453da51555e0a578d68fb (diff) |
fix negative update interval handling
Diffstat (limited to 'functions.php')
-rw-r--r-- | functions.php | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/functions.php b/functions.php index 2e25b9500..d502d08d4 100644 --- a/functions.php +++ b/functions.php @@ -125,6 +125,11 @@ $upd_intl = get_pref($link, 'DEFAULT_UPDATE_INTERVAL', $user_id); } + if ($upd_intl < 0) { + // Updates for this feed are disabled + continue; + } + if ($fetch || (!$line["last_updated"] || time() - strtotime($line["last_updated"]) > ($upd_intl * 60))) { |