diff options
author | Bharat Mediratta <bharat@menalto.com> | 2009-02-05 08:38:15 +0000 |
---|---|---|
committer | Bharat Mediratta <bharat@menalto.com> | 2009-02-05 08:38:15 +0000 |
commit | 3e54159d5c3086bb13a3bf5cd62abb55fe661771 (patch) | |
tree | 965a28798f2a0cb9237f0c3569da068f40e52383 | |
parent | 1b231063a091325fd801718b5f43ff876ca80ca5 (diff) |
Guard against the case where gd_info() isn't defined
-rw-r--r-- | core/helpers/graphics.php | 2 |
1 files changed, 1 insertions, 1 deletions
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"))); } |