Skip to content

Commit

Permalink
Fix post action PHP8 warning
Browse files Browse the repository at this point in the history
  • Loading branch information
zonky2 committed Nov 20, 2024
1 parent a3dfe6a commit 16e2f40
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/EventListener/Contao/ExecutePostActions.php
Original file line number Diff line number Diff line change
Expand Up @@ -256,7 +256,8 @@ public function executePostActions($action, DataContainer $container)
// Add the sub configuration into the DCA. We need this for contao. Without it is not possible
// to get the data for the picker.
if (
($GLOBALS['TL_DCA'][$container->table]['fields'][$mcwBaseName]['inputType'] == 'multiColumnWizard')
(($GLOBALS['TL_DCA'][$container->table]['fields'][$mcwBaseName]['inputType'] ?? null)
=== 'multiColumnWizard')
&& !($container instanceof DataContainerInterface)
) {
$widget = MultiColumnWizard::generateSimpleMcw($container->table, $mcwBaseName);
Expand Down

0 comments on commit 16e2f40

Please sign in to comment.