]> git.wh0rd.org Git - tt-rss.git/commitdiff
purge_feed: stop when purging is disabled for the feed
authorAndrew Dolgov <fox@bah.spb.su>
Thu, 22 Jan 2009 07:09:18 +0000 (08:09 +0100)
committerAndrew Dolgov <fox@bah.spb.su>
Thu, 22 Jan 2009 07:09:18 +0000 (08:09 +0100)
functions.php

index 416ab7c90e62584b824093629e97d9be8a22703f..8eaab14fdbc714b5d6345d0867c2ca40b1cf6549 100644 (file)
        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;