From 99ca6133b0fbb438c12e8dce6d951737feb5384a Mon Sep 17 00:00:00 2001 From: Bharat Mediratta Date: Sat, 9 May 2009 16:37:03 +0000 Subject: Force the 'GD Version' key to exist --- core/helpers/graphics.php | 3 +++ 1 file changed, 3 insertions(+) (limited to 'core/helpers') diff --git a/core/helpers/graphics.php b/core/helpers/graphics.php index b409de47..ed6f314d 100644 --- a/core/helpers/graphics.php +++ b/core/helpers/graphics.php @@ -274,6 +274,9 @@ class graphics_Core { static function detect_toolkits() { $gd = function_exists("gd_info") ? gd_info() : array(); $exec = function_exists("exec"); + if (!isset($gd["GD Version"])) { + $gd["GD Version"] = false; + } return array("gd" => $gd, "imagemagick" => $exec ? dirname(exec("which convert")) : false, "graphicsmagick" => $exec ? dirname(exec("which gm")) : false); -- cgit v1.2.3