From f2798eb6e6ed569684989e64b94107ff05dc1fee Mon Sep 17 00:00:00 2001 From: Andrew Dolgov Date: Thu, 24 May 2012 16:45:54 +0400 Subject: [PATCH] properly update favicon_last_checked --- include/rssfuncs.php | 11 +++++++---- 1 file changed, 7 insertions(+), 4 deletions(-) diff --git a/include/rssfuncs.php b/include/rssfuncs.php index 325e1a70..c86c3677 100644 --- a/include/rssfuncs.php +++ b/include/rssfuncs.php @@ -451,7 +451,12 @@ _debug("update_rss_feed: checking favicon..."); } - if ($favicon_needs_check) check_feed_favicon($site_url, $feed, $link); + if ($favicon_needs_check) { + check_feed_favicon($site_url, $feed, $link); + + db_query($link, "UPDATE ttrss_feeds SET favicon_last_checked = NOW() + WHERE id = '$feed'"); + } if (!$registered_title || $registered_title == "[Unknown]") { @@ -1295,9 +1300,7 @@ purge_feed($link, $feed, 0, $debug_enabled); db_query($link, "UPDATE ttrss_feeds - SET last_updated = NOW(), - favicon_last_checked = NOW(), - last_error = '' WHERE id = '$feed'"); + SET last_updated = NOW(), last_error = '' WHERE id = '$feed'"); // db_query($link, "COMMIT"); -- 2.39.5