From: Andrew Dolgov Date: Thu, 22 Jan 2009 07:09:18 +0000 (+0100) Subject: purge_feed: stop when purging is disabled for the feed X-Git-Tag: git2svn-syncpoint-master~72 X-Git-Url: https://git.wh0rd.org/?a=commitdiff_plain;h=2610b6fc8b62f254645c476e4805d50266cef7ad;p=tt-rss.git purge_feed: stop when purging is disabled for the feed --- diff --git a/functions.php b/functions.php index 416ab7c9..8eaab14f 100644 --- a/functions.php +++ b/functions.php @@ -133,6 +133,7 @@ function purge_feed($link, $feed_id, $purge_interval, $debug = false) { if (!$purge_interval) $purge_interval = feed_purge_interval($link, $feed_id); + if ($purge_interval == -1 || !$purge_interval) return; $rows = -1;