aboutsummaryrefslogtreecommitdiffstats
path: root/admin/include
diff options
context:
space:
mode:
Diffstat (limited to '')
-rw-r--r--admin/include/image.class.php8
1 files changed, 4 insertions, 4 deletions
diff --git a/admin/include/image.class.php b/admin/include/image.class.php
index b6c33e269..53a27b924 100644
--- a/admin/include/image.class.php
+++ b/admin/include/image.class.php
@@ -421,8 +421,8 @@ class image_ext_imagick implements imageInterface
$this->imagickdir = $imagickdir;
$command = $imagickdir.'identify -format "%wx%h" "'.realpath($source_filepath).'"';
- @exec($command, $returnarray, $returnvalue);
- if($returnvalue or !preg_match('/^(\d+)x(\d+)$/', $returnarray[0], $match))
+ @exec($command, $returnarray);
+ if(!is_array($returnarray) or empty($returnarray[0]) or !preg_match('/^(\d+)x(\d+)$/', $returnarray[0], $match))
{
die("[External ImageMagick] Corrupt image");
}
@@ -495,8 +495,8 @@ class image_ext_imagick implements imageInterface
$dest = pathinfo($destination_filepath);
$exec .= ' "'.realpath($dest['dirname']).'/'.$dest['basename'].'"';
- @exec($exec, $returnarray, $returnvalue);
- return !$returnvalue;
+ @exec($exec, $returnarray);
+ return is_array($returnarray);
}
}