From: Andrew Dolgov Date: Tue, 23 Apr 2013 18:37:06 +0000 (+0400) Subject: do not recalculate avg color repeatedly X-Git-Tag: 1.7.9~25^2~107 X-Git-Url: https://git.wh0rd.org/?a=commitdiff_plain;h=6ee0d4b05c2f159aa828274f2f4e0f5548d1890e;p=tt-rss.git do not recalculate avg color repeatedly --- diff --git a/include/rssfuncs.php b/include/rssfuncs.php index bc054ca5..870d7720 100644 --- a/include/rssfuncs.php +++ b/include/rssfuncs.php @@ -433,7 +433,7 @@ 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(