From 2610b6fc8b62f254645c476e4805d50266cef7ad Mon Sep 17 00:00:00 2001 From: Andrew Dolgov Date: Thu, 22 Jan 2009 08:09:18 +0100 Subject: [PATCH] purge_feed: stop when purging is disabled for the feed --- functions.php | 1 + 1 file changed, 1 insertion(+) 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;