do not try to calculate icon avg color if GD is not present

This commit is contained in:
Andrew Dolgov 2013-04-19 08:42:35 +04:00
parent 48ed517e8d
commit 96db9a14d9
1 changed files with 1 additions and 1 deletions

View File

@ -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(