diff --git a/src/Resources/contao/templates/rsts_default.html5 b/src/Resources/contao/templates/rsts_default.html5 index 7b5e9e6..e5749d7 100644 --- a/src/Resources/contao/templates/rsts_default.html5 +++ b/src/Resources/contao/templates/rsts_default.html5 @@ -160,7 +160,7 @@ - href && $tagName !== 'a') { + href) && $tagName !== 'a') { $tagName = 'a'; $attributes .= ' href="' . $slide['image']->href . '"'; if ($slide['image']->linkTitle) { @@ -173,7 +173,7 @@ } ?> <= $tagName ?> data-rsts-type="image" = $attributes ?>> - insert('picture_default', array_merge($slide['image']->picture, ['attributes' => $slide['image']->picture['attributes'] . ' ' . $imageAttributes])) ?> + insert('picture_default', array_merge($slide['image']->picture, ['attributes' => ($slide['image']->picture['attributes'] ?? '') . ' ' . $imageAttributes])) ?> caption): ?>
= $slide['image']->caption ?>