From 2035648ab2c7d2e89213328efa74623883e2d2e7 Mon Sep 17 00:00:00 2001 From: Dennis Patzer Date: Tue, 15 Feb 2022 10:18:00 +0100 Subject: [PATCH] fixed array index issue for php8 --- src/Resources/contao/dca/tl_css_style_selector.php | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/Resources/contao/dca/tl_css_style_selector.php b/src/Resources/contao/dca/tl_css_style_selector.php index a52b25e..02ebe37 100644 --- a/src/Resources/contao/dca/tl_css_style_selector.php +++ b/src/Resources/contao/dca/tl_css_style_selector.php @@ -83,7 +83,7 @@ 'label' => &$GLOBALS['TL_LANG']['tl_css_style_selector']['delete'], 'href' => 'act=delete', 'icon' => 'delete.gif', - 'attributes' => 'onclick="if(!confirm(\'' . $GLOBALS['TL_LANG']['MSC']['deleteConfirm'] . '\'))return false;Backend.getScrollOffset()"' + 'attributes' => 'onclick="if(!confirm(\'' . ($GLOBALS['TL_LANG']['MSC']['deleteConfirm'] ?? null) . '\'))return false;Backend.getScrollOffset()"' ), 'show' => array ( @@ -236,3 +236,4 @@ ) ) ); +