diff options
author | Bharat Mediratta <bharat@menalto.com> | 2009-05-09 16:37:03 +0000 |
---|---|---|
committer | Bharat Mediratta <bharat@menalto.com> | 2009-05-09 16:37:03 +0000 |
commit | 99ca6133b0fbb438c12e8dce6d951737feb5384a (patch) | |
tree | f8eb7835e1451ed53ca2b0d8ee8508a31760bd4d /core/helpers | |
parent | 853c00cde04509fb2f90ab7adc2425528dc7839c (diff) |
Force the 'GD Version' key to exist
Diffstat (limited to 'core/helpers')
-rw-r--r-- | core/helpers/graphics.php | 3 |
1 files changed, 3 insertions, 0 deletions
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); |