From: Andrew Dolgov Date: Sun, 1 Apr 2012 05:35:56 +0000 (+0400) Subject: allow manual updates for feeds with disabled automatic updates X-Git-Tag: 1.5.11~16 X-Git-Url: https://git.wh0rd.org/?a=commitdiff_plain;h=ecbd7b91fe22b9d2fe13cbe6e2483b85b400ec9b;p=tt-rss.git allow manual updates for feeds with disabled automatic updates --- diff --git a/classes/rpc.php b/classes/rpc.php index a5e32d47..5bb9b329 100644 --- a/classes/rpc.php +++ b/classes/rpc.php @@ -746,7 +746,7 @@ class RPC extends Protected_Handler { db_query($this->link, "UPDATE ttrss_feeds SET last_update_started = '1970-01-01', - last_updated = '1970-01-01' WHERE id = '$feed_id' AND + last_updated = NULL WHERE id = '$feed_id' AND owner_uid = ".$_SESSION["uid"]); } else { @@ -759,7 +759,7 @@ class RPC extends Protected_Handler { db_query($this->link, "UPDATE ttrss_feeds SET last_update_started = '1970-01-01', - last_updated = '1970-01-01' WHERE $cat_query AND + last_updated = NULL WHERE $cat_query AND owner_uid = ".$_SESSION["uid"]); } } else { diff --git a/include/rssfuncs.php b/include/rssfuncs.php index 6d3cfc3b..1baa31d1 100644 --- a/include/rssfuncs.php +++ b/include/rssfuncs.php @@ -310,12 +310,9 @@ $auth_pass = urlencode($auth_pass); } - $update_interval = db_fetch_result($result, 0, "update_interval"); $cache_images = sql_bool_to_bool(db_fetch_result($result, 0, "cache_images")); $fetch_url = db_fetch_result($result, 0, "feed_url"); - if ($update_interval < 0) { return false; } - $feed = db_escape_string($feed); if ($auth_login && $auth_pass ){