Skip to content

Commit 16e2f40

Browse files
committed
Fix post action PHP8 warning
1 parent a3dfe6a commit 16e2f40

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

src/EventListener/Contao/ExecutePostActions.php

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -256,7 +256,8 @@ public function executePostActions($action, DataContainer $container)
256256
// Add the sub configuration into the DCA. We need this for contao. Without it is not possible
257257
// to get the data for the picker.
258258
if (
259-
($GLOBALS['TL_DCA'][$container->table]['fields'][$mcwBaseName]['inputType'] == 'multiColumnWizard')
259+
(($GLOBALS['TL_DCA'][$container->table]['fields'][$mcwBaseName]['inputType'] ?? null)
260+
=== 'multiColumnWizard')
260261
&& !($container instanceof DataContainerInterface)
261262
) {
262263
$widget = MultiColumnWizard::generateSimpleMcw($container->table, $mcwBaseName);

0 commit comments

Comments
 (0)