]> git.wh0rd.org Git - tt-rss.git/commitdiff
do not recalculate avg color repeatedly
authorAndrew Dolgov <fox@madoka.volgo-balt.ru>
Tue, 23 Apr 2013 18:37:06 +0000 (22:37 +0400)
committerAndrew Dolgov <fox@madoka.volgo-balt.ru>
Tue, 23 Apr 2013 18:37:06 +0000 (22:37 +0400)
include/rssfuncs.php

index bc054ca52399465ac9d1343a5ad656b012f7cd8e..870d772031fa2d498054eb8c4bccb1620bdc8c15 100644 (file)
                                if ($favicon_modified_new > $favicon_modified)
                                        $favicon_avg_color = '';
 
-                               if (file_exists($favicon_file) && function_exists("imagecreatefromstring") && $favicon_avg_color != 'fail') {
+                               if (file_exists($favicon_file) && function_exists("imagecreatefromstring") && $favicon_avg_color == '') {
                                                require_once "colors.php";
 
                                                $favicon_color = db_escape_string(