]> git.wh0rd.org - tt-rss.git/blobdiff - functions.php
fix negative update interval handling
[tt-rss.git] / functions.php
index 2e25b95003bce4e1dd2985bc44b44b34e9cb5845..d502d08d4a4b86348d8c00a07fcc1f9bb9fa4de2 100644 (file)
                                $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))) {