set last_update even if feed failed to update properly

This commit is contained in:
Andrew Dolgov 2005-11-15 09:24:28 +01:00
parent 628eb1bdf2
commit aa5f9f5fec
1 changed files with 2 additions and 1 deletions

View File

@ -358,7 +358,8 @@
} else { } else {
$error_msg = db_escape_string(magpie_error()); $error_msg = db_escape_string(magpie_error());
db_query($link, db_query($link,
"UPDATE ttrss_feeds SET last_error = '$error_msg' WHERE id = '$feed'"); "UPDATE ttrss_feeds SET last_error = '$error_msg',
last_updated = NOW() WHERE id = '$feed'");
} }
db_query($link, "COMMIT"); db_query($link, "COMMIT");