diff options
author | Andrew Dolgov <[email protected]> | 2013-04-19 08:42:35 +0400 |
---|---|---|
committer | Andrew Dolgov <[email protected]> | 2013-04-19 08:42:35 +0400 |
commit | 96db9a14d983bd48c38d9d84ba62d014fb00dc19 (patch) | |
tree | 9445821cae96a354b6625c6a2c736dddba9d08fb /include/rssfuncs.php | |
parent | 48ed517e8dd52fdb8b00739808d0820cefc42e8d (diff) |
do not try to calculate icon avg color if GD is not present
Diffstat (limited to 'include/rssfuncs.php')
-rw-r--r-- | include/rssfuncs.php | 2 |
1 files changed, 1 insertions, 1 deletions
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( |