From 6ee0d4b05c2f159aa828274f2f4e0f5548d1890e Mon Sep 17 00:00:00 2001 From: Andrew Dolgov Date: Tue, 23 Apr 2013 22:37:06 +0400 Subject: do not recalculate avg color repeatedly --- include/rssfuncs.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'include/rssfuncs.php') diff --git a/include/rssfuncs.php b/include/rssfuncs.php index bc054ca52..870d77203 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( -- cgit v1.2.3