Fixed a bug when ImageMagick is not installed

This commit is contained in:
Tobias Reich 2014-09-04 21:31:33 +02:00
parent 4d74507b06
commit bcf281a220

View File

@ -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();