From 3e54159d5c3086bb13a3bf5cd62abb55fe661771 Mon Sep 17 00:00:00 2001 From: Bharat Mediratta Date: Thu, 5 Feb 2009 08:38:15 +0000 Subject: Guard against the case where gd_info() isn't defined --- core/helpers/graphics.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'core/helpers') diff --git a/core/helpers/graphics.php b/core/helpers/graphics.php index 67756c4b..9954bf22 100644 --- a/core/helpers/graphics.php +++ b/core/helpers/graphics.php @@ -236,7 +236,7 @@ class graphics_Core { * GraphicsMagick we return the path to the directory containing the appropriate binaries. */ static function detect_toolkits() { - return array("gd" => gd_info(), + return array("gd" => function_exists("gd_info") ? gd_info() : array(), "imagemagick" => dirname(exec("which convert")), "graphicsmagick" => dirname(exec("which gm"))); } -- cgit v1.2.3