Skip to content

Commit

Permalink
Merge pull request #63 from fritzmg/fix-undefined-array-key-warning
Browse files Browse the repository at this point in the history
Fix undefined array key warning
  • Loading branch information
eki89 authored Mar 2, 2022
2 parents 202c122 + 687e24f commit 305c60d
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 @@ -94,7 +94,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 305c60d

Please sign in to comment.