Browse Source

Fixed a bug when ImageMagick is not installed

Tobias Reich 9 years ago
parent
commit
bcf281a220
1 changed files with 1 additions and 1 deletions
  1. 1 1
      plugins/check/index.php

+ 1 - 1
plugins/check/index.php

@@ -98,7 +98,7 @@ $json = json_decode($json, true);
 $imagick = extension_loaded('imagick');
 if ($imagick===false) $imagick = '-';
 
-$imagickVersion = @Imagick::getVersion();
+if ($imagick===true) $imagickVersion = @Imagick::getVersion();
 if (!isset($imagickVersion)||$imagickVersion==='') $imagickVersion = '-';
 
 $gdVersion = gd_info();