diff options
author | patdenice <patdenice@piwigo.org> | 2011-10-19 13:05:26 +0000 |
---|---|---|
committer | patdenice <patdenice@piwigo.org> | 2011-10-19 13:05:26 +0000 |
commit | 5c452b8084c5b0c351038cb30dc5f1bab5c0e374 (patch) | |
tree | c8c19f37cc21148bca16fb6a98138d76313e7647 /admin/include/image.class.php | |
parent | 467b40f710d51f23a79075a9ef95bde6d66202ca (diff) |
bug:2479
External ImageMagick library is not properly detected
git-svn-id: http://piwigo.org/svn/trunk@12493 68402e56-0260-453c-a942-63ccdbb3a9ee
Diffstat (limited to 'admin/include/image.class.php')
-rw-r--r-- | admin/include/image.class.php | 4 |
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; } |