]> git.wh0rd.org Git - tt-rss.git/commitdiff
purge_feed: properly pass owner_uid to ccache_update
authorAndrew Dolgov <fox@bah.spb.su>
Thu, 22 Jan 2009 07:22:57 +0000 (08:22 +0100)
committerAndrew Dolgov <fox@bah.spb.su>
Thu, 22 Jan 2009 07:22:57 +0000 (08:22 +0100)
functions.php

index f409ddea2207774191f01b40c2c329a65ad8fe80..e7e7d8ca54acac7447927e2e936f9e5aef366506 100644 (file)
 
                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, 
                        $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) {