From 96db9a14d983bd48c38d9d84ba62d014fb00dc19 Mon Sep 17 00:00:00 2001 From: Andrew Dolgov Date: Fri, 19 Apr 2013 08:42:35 +0400 Subject: [PATCH] do not try to calculate icon avg color if GD is not present --- include/rssfuncs.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/include/rssfuncs.php b/include/rssfuncs.php index 079471b4d..8ffcbde8a 100644 --- a/include/rssfuncs.php +++ b/include/rssfuncs.php @@ -424,7 +424,7 @@ check_feed_favicon($site_url, $feed, $link); $favicon_file = ICONS_DIR . "/$feed.ico"; - if (file_exists($favicon_file)) { + if (file_exists($favicon_file) && function_exists("imagecreatefromstring")) { require_once "colors.php"; $favicon_color = db_escape_string(