From: Andrew Dolgov Date: Thu, 24 May 2012 12:45:54 +0000 (+0400) Subject: properly update favicon_last_checked X-Git-Tag: 1.6.0~225 X-Git-Url: https://git.wh0rd.org/?a=commitdiff_plain;h=f2798eb6e6ed569684989e64b94107ff05dc1fee;p=tt-rss.git properly update favicon_last_checked --- 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");