summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--core/helpers/graphics.php2
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")));
}