properly update favicon_last_checked

This commit is contained in:
Andrew Dolgov 2012-05-24 16:45:54 +04:00
parent d3158e2250
commit f2798eb6e6
1 changed files with 7 additions and 4 deletions

View File

@ -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");