Skip to content

Commit

Permalink
fix undefined array key warning
Browse files Browse the repository at this point in the history
  • Loading branch information
fritzmg committed Mar 2, 2022
1 parent ad6ebcf commit 687e24f
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion src/Resources/contao/dca/tl_style_manager.php
Original file line number Diff line number Diff line change
Expand Up @@ -71,7 +71,7 @@
'label' => &$GLOBALS['TL_LANG']['tl_style_manager']['delete'],
'href' => 'act=delete',
'icon' => 'delete.svg',
'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
(
Expand Down
2 changes: 1 addition & 1 deletion src/Resources/contao/dca/tl_style_manager_archive.php
Original file line number Diff line number Diff line change
Expand Up @@ -91,7 +91,7 @@
'label' => &$GLOBALS['TL_LANG']['tl_style_manager_archive']['delete'],
'href' => 'act=delete',
'icon' => 'delete.svg',
'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
(
Expand Down

0 comments on commit 687e24f

Please sign in to comment.