From c1e202b79c6a17c9d2117725322baa5b8c662765 Mon Sep 17 00:00:00 2001 From: Andrew Dolgov Date: Sun, 12 Feb 2006 06:34:27 +0100 Subject: fix negative update interval handling --- functions.php | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'functions.php') 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))) { -- cgit v1.2.3