diff --git a/common/components/artboximage/ArtboxImageHelper.php b/common/components/artboximage/ArtboxImageHelper.php index a379b21..ed7a3bf 100755 --- a/common/components/artboximage/ArtboxImageHelper.php +++ b/common/components/artboximage/ArtboxImageHelper.php @@ -86,7 +86,10 @@ class ArtboxImageHelper extends Object { foreach ($preset as $action => $data) { switch($action) { case 'resize': - $image->resize($data['width'], $data['height'], @$data['master']); + $width = empty($data['width']) ? null : $data['width']; + $height = empty($data['height']) ? null : $data['height']; + $master = empty($data['master']) ? null : $data['master']; + $image->resize($width, $height, $master); break; case 'flip': $image->flip(@$data['direction']); -- libgit2 0.21.4