Commit 7b48dca2b9b9df7fb45bfb1c3a193e182b8506ad
1 parent
61b046ac
-
Showing
1 changed file
with
4 additions
and
1 deletions
Show diff stats
common/components/artboximage/ArtboxImageHelper.php
... | ... | @@ -86,7 +86,10 @@ class ArtboxImageHelper extends Object { |
86 | 86 | foreach ($preset as $action => $data) { |
87 | 87 | switch($action) { |
88 | 88 | case 'resize': |
89 | - $image->resize($data['width'], $data['height'], @$data['master']); | |
89 | + $width = empty($data['width']) ? null : $data['width']; | |
90 | + $height = empty($data['height']) ? null : $data['height']; | |
91 | + $master = empty($data['master']) ? null : $data['master']; | |
92 | + $image->resize($width, $height, $master); | |
90 | 93 | break; |
91 | 94 | case 'flip': |
92 | 95 | $image->flip(@$data['direction']); | ... | ... |