From: Andrew Dolgov Date: Fri, 19 Apr 2013 04:42:35 +0000 (+0400) Subject: do not try to calculate icon avg color if GD is not present X-Git-Tag: 1.7.9~25^2~131 X-Git-Url: https://git.wh0rd.org/?a=commitdiff_plain;h=96db9a14d983bd48c38d9d84ba62d014fb00dc19;p=tt-rss.git do not try to calculate icon avg color if GD is not present --- diff --git a/include/rssfuncs.php b/include/rssfuncs.php index 079471b4..8ffcbde8 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(