From 00fceabf61a67abdd4a119f562f013f8ed6b022b Mon Sep 17 00:00:00 2001 From: Andrew Dolgov Date: Sat, 17 Jan 2009 15:44:01 +0100 Subject: [PATCH] rpc, updateAllFeeds: remove unnecessary modifications of ttrss_scheduled_updates --- modules/backend-rpc.php | 23 ----------------------- 1 file changed, 23 deletions(-) diff --git a/modules/backend-rpc.php b/modules/backend-rpc.php index 75e4f946e..41e8ebd18 100644 --- a/modules/backend-rpc.php +++ b/modules/backend-rpc.php @@ -135,29 +135,6 @@ 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);