From: Andrew Dolgov Date: Sat, 17 Jan 2009 14:44:01 +0000 (+0100) Subject: rpc, updateAllFeeds: remove unnecessary modifications of ttrss_scheduled_updates X-Git-Tag: 1.3.0~119 X-Git-Url: https://git.wh0rd.org/?a=commitdiff_plain;h=00fceabf61a67abdd4a119f562f013f8ed6b022b;p=tt-rss.git rpc, updateAllFeeds: remove unnecessary modifications of ttrss_scheduled_updates --- diff --git a/modules/backend-rpc.php b/modules/backend-rpc.php index 75e4f946..41e8ebd1 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);