diff --git a/src/MadeYourDay/Contao/Element/CustomElement.php b/src/MadeYourDay/Contao/Element/CustomElement.php index c1667ce..a135dfb 100644 --- a/src/MadeYourDay/Contao/Element/CustomElement.php +++ b/src/MadeYourDay/Contao/Element/CustomElement.php @@ -178,11 +178,11 @@ public function getImageObject($id, $size = null, $maxSize = null) $size = deserialize($size); } if (!is_array($size)) { - $size = array(0, 0, 'center_center'); + $size = array(); } $size[0] = isset($size[0]) ? $size[0] : 0; $size[1] = isset($size[1]) ? $size[1] : 0; - $size[2] = isset($size[2]) ? $size[2] : 'center_center'; + $size[2] = isset($size[2]) ? $size[2] : 'crop'; $image = array( 'id' => $image->id,