]> git.wh0rd.org - tt-rss.git/commitdiff
fix DAEMON_REFRESH_ONLY handling
authorAndrew Dolgov <fox@madoka.spb.ru>
Fri, 28 Oct 2005 09:38:36 +0000 (10:38 +0100)
committerAndrew Dolgov <fox@madoka.spb.ru>
Fri, 28 Oct 2005 09:38:36 +0000 (10:38 +0100)
backend.php
functions.php

index ae849900aa673f74ceb3047605f30cf93c37bfae..353062d193b19b600ca5dfd2353f1e80998c27ab 100644 (file)
                }
 
                if ($subop == "forceUpdateAllFeeds" || $subop == "updateAllFeeds") {
+               
                        update_all_feeds($link, true);                  
 
                        $omode = $_GET["omode"];
index 9d0016c72c26f98414f337869905a8abbe2c9fb6..5057d23c4db3f650ad0b191203910a1e06361789 100644 (file)
 
                if (WEB_DEMO_MODE) return;
 
-               if (! ($_GET["daemon"] && DAEMON_REFRESH_ONLY)) {
-                       return;
+               if (DAEMON_REFRESH_ONLY) {
+                       if (!$_GET["daemon"]) {
+                               return;
+                       }
                }
 
                db_query($link, "BEGIN");
@@ -39,7 +41,7 @@
 
                        if (!$line["last_updated"] || 
                                time() - strtotime($line["last_updated"]) > ($upd_intl * 60)) {
-                       
+
                                update_rss_feed($link, $line["feed_url"], $line["id"]);
                        }
                }