allow manual updates for feeds with disabled automatic updates

This commit is contained in:
Andrew Dolgov 2012-04-01 09:35:56 +04:00
parent c86bf88d98
commit ecbd7b91fe
2 changed files with 2 additions and 5 deletions

View File

@ -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 {

View File

@ -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 ){