Skip to content

Commit

Permalink
Fix a PHP 8 warning in tl_cookie.php (see #233)
Browse files Browse the repository at this point in the history
  • Loading branch information
fritzmg authored Nov 13, 2024
1 parent 16b5ecd commit bcdddf0
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/Resources/contao/dca/tl_cookie.php
Original file line number Diff line number Diff line change
Expand Up @@ -691,7 +691,7 @@ public function overwriteTranslation($varValue, $dc)
{
$field = $dc->activeRecord->type . '_' . $dc->field;

if($tl = $GLOBALS['TL_LANG']['tl_cookie'][$field])
if($tl = ($GLOBALS['TL_LANG']['tl_cookie'][$field] ?? null))
{
$GLOBALS['TL_DCA']['tl_cookie']['fields'][$dc->field]['label'] = $tl;
}
Expand Down

0 comments on commit bcdddf0

Please sign in to comment.