1
0
mirror of https://git.tt-rss.org/git/tt-rss.git synced 2025-12-13 12:05:55 +00:00

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

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(