From ecbd7b91fe22b9d2fe13cbe6e2483b85b400ec9b Mon Sep 17 00:00:00 2001 From: Andrew Dolgov Date: Sun, 1 Apr 2012 09:35:56 +0400 Subject: [PATCH] allow manual updates for feeds with disabled automatic updates --- classes/rpc.php | 4 ++-- include/rssfuncs.php | 3 --- 2 files changed, 2 insertions(+), 5 deletions(-) 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 ){ -- 2.39.5