From 0b735aeee03b94d0c1f163d448460f9ba9caac7c Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Martin=20Auswo=CC=88ger?= Date: Fri, 23 Apr 2021 14:02:27 +0200 Subject: [PATCH] Fix PHP 8.0 undefined key warnings --- src/Resources/contao/templates/rsts_default.html5 | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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 @@ } ?> < data-rsts-type="image" > - 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): ?>

caption ?>