]> git.wh0rd.org Git - tt-rss.git/commitdiff
properly update favicon_last_checked
authorAndrew Dolgov <fox@madoka.volgo-balt.ru>
Thu, 24 May 2012 12:45:54 +0000 (16:45 +0400)
committerAndrew Dolgov <fox@madoka.volgo-balt.ru>
Thu, 24 May 2012 12:45:54 +0000 (16:45 +0400)
include/rssfuncs.php

index 325e1a70230e432af979771aa254f2c73cb9fa89..c86c36773f3328a98158af7b385e78d6f864d6c6 100644 (file)
                                _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]") {
 
                        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");