]> git.wh0rd.org Git - tt-rss.git/commitdiff
do not try to calculate icon avg color if GD is not present
authorAndrew Dolgov <fox@madoka.volgo-balt.ru>
Fri, 19 Apr 2013 04:42:35 +0000 (08:42 +0400)
committerAndrew Dolgov <fox@madoka.volgo-balt.ru>
Fri, 19 Apr 2013 04:42:35 +0000 (08:42 +0400)
include/rssfuncs.php

index 079471b4daf7f68b244886d00819396883f4b55c..8ffcbde8a7ce0132377dafb6cee8d0cf9ae17804 100644 (file)
                                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(