Skip to content

Commit

Permalink
do not try to calculate icon avg color if GD is not present
Browse files Browse the repository at this point in the history
  • Loading branch information
Andrew Dolgov committed Apr 19, 2013
1 parent 48ed517 commit 96db9a1
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion include/rssfuncs.php
Original file line number Diff line number Diff line change
Expand Up @@ -424,7 +424,7 @@ function update_rss_feed($feed, $ignore_daemon = false, $no_cache = false,
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(
Expand Down

0 comments on commit 96db9a1

Please sign in to comment.