purge_feed: stop when purging is disabled for the feed

This commit is contained in:
Andrew Dolgov 2009-01-22 08:09:18 +01:00
parent 90ec0c86ca
commit 2610b6fc8b
1 changed files with 1 additions and 0 deletions

View File

@ -133,6 +133,7 @@
function purge_feed($link, $feed_id, $purge_interval, $debug = false) { function purge_feed($link, $feed_id, $purge_interval, $debug = false) {
if (!$purge_interval) $purge_interval = feed_purge_interval($link, $feed_id); if (!$purge_interval) $purge_interval = feed_purge_interval($link, $feed_id);
if ($purge_interval == -1 || !$purge_interval) return;
$rows = -1; $rows = -1;