From: Andrew Dolgov Date: Thu, 22 Jan 2009 07:22:57 +0000 (+0100) Subject: purge_feed: properly pass owner_uid to ccache_update X-Git-Tag: git2svn-syncpoint-master~70 X-Git-Url: https://git.wh0rd.org/?a=commitdiff_plain;h=ab954dffad6886d613a4f973d3b70b3361306f09;p=tt-rss.git purge_feed: properly pass owner_uid to ccache_update --- diff --git a/functions.php b/functions.php index f409ddea..e7e7d8ca 100644 --- a/functions.php +++ b/functions.php @@ -134,11 +134,6 @@ if (!$purge_interval) $purge_interval = feed_purge_interval($link, $feed_id); - if ($purge_interval == -1 || !$purge_interval) { - ccache_update($link, $feed_id, $owner_uid); - return; - } - $rows = -1; $result = db_query($link, @@ -150,6 +145,13 @@ $owner_uid = db_fetch_result($result, 0, "owner_uid"); } + if ($purge_interval == -1 || !$purge_interval) { + if ($owner_uid) { + ccache_update($link, $feed_id, $owner_uid); + } + return; + } + if (!$owner_uid) return; if (FORCE_ARTICLE_PURGE == 0) {