]> git.wh0rd.org Git - tt-rss.git/commitdiff
rpc, updateAllFeeds: remove unnecessary modifications of ttrss_scheduled_updates
authorAndrew Dolgov <fox@bah.spb.su>
Sat, 17 Jan 2009 14:44:01 +0000 (15:44 +0100)
committerAndrew Dolgov <fox@bah.spb.su>
Sat, 17 Jan 2009 14:44:01 +0000 (15:44 +0100)
modules/backend-rpc.php

index 75e4f946ed2f093839eafa568223d40850360a5a..41e8ebd188d1ed8bccc29ead195b665f20367af4 100644 (file)
 
                if ($subop == "forceUpdateAllFeeds" || $subop == "updateAllFeeds") {
        
-                       if (ENABLE_UPDATE_DAEMON) {
-
-                               if ($subop == "forceUpdateAllFeeds") {
-
-                                       $result = db_query($link, "SELECT count(id) AS cid FROM
-                                               ttrss_scheduled_updates WHERE feed_id IS NULL AND
-                                                       owner_uid = " . $_SESSION["uid"]);
-       
-                                       $cid = db_fetch_result($result, 0, "cid");
-
-                                       if ($cid == 0) {
-       
-                                               db_query($link, "INSERT INTO ttrss_scheduled_updates
-                                                       (owner_uid, feed_id, entered) VALUES
-                                                       (".$_SESSION["uid"].", NULL, NOW())");
-                                       
-                                       }
-                               }
-                               
-                       } else {        
-                               update_all_feeds($link, $subop == "forceUpdateAllFeeds");
-                       }
-
                        $global_unread_caller = sprintf("%d", $_GET["uctr"]);
                        $global_unread = getGlobalUnread($link);