From aa5f9f5fec1419b34e0ad71df3aad6019241b5c0 Mon Sep 17 00:00:00 2001 From: Andrew Dolgov Date: Tue, 15 Nov 2005 09:24:28 +0100 Subject: [PATCH] set last_update even if feed failed to update properly --- functions.php | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/functions.php b/functions.php index 2fdd13220..28cbb1cdd 100644 --- a/functions.php +++ b/functions.php @@ -358,7 +358,8 @@ } else { $error_msg = db_escape_string(magpie_error()); 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");