diff options
Diffstat (limited to 'core/helpers/graphics.php')
-rw-r--r-- | core/helpers/graphics.php | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/core/helpers/graphics.php b/core/helpers/graphics.php index 1caebc44..c0ef98db 100644 --- a/core/helpers/graphics.php +++ b/core/helpers/graphics.php @@ -269,9 +269,10 @@ class graphics_Core { */ static function detect_toolkits() { $gd = function_exists("gd_info") ? gd_info() : array(); + $exec = function_exists("exec"); return array("gd" => $gd, - "imagemagick" => dirname(exec("which convert")), - "graphicsmagick" => dirname(exec("which gm"))); + "imagemagick" => $exec ? dirname(exec("which convert")) : false, + "graphicsmagick" => $exec ? dirname(exec("which gm")) : false); } /** |