aboutsummaryrefslogtreecommitdiffstats
path: root/admin/include
diff options
context:
space:
mode:
Diffstat (limited to 'admin/include')
-rw-r--r--admin/include/image.class.php4
1 files changed, 2 insertions, 2 deletions
diff --git a/admin/include/image.class.php b/admin/include/image.class.php
index 067cc9b08..43eaaea4a 100644
--- a/admin/include/image.class.php
+++ b/admin/include/image.class.php
@@ -271,8 +271,8 @@ class pwg_image
{
return false;
}
- @exec($conf['ext_imagick_dir'].'convert -version', $returnarray, $returnvalue);
- if (!$returnvalue and !empty($returnarray[0]) and preg_match('/ImageMagick/i', $returnarray[0]))
+ @exec($conf['ext_imagick_dir'].'convert -version', $returnarray);
+ if (is_array($returnarray) and !empty($returnarray[0]) and preg_match('/ImageMagick/i', $returnarray[0]))
{
return true;
}