diff --git a/src/Contao/Widgets/MultiColumnWizard.php b/src/Contao/Widgets/MultiColumnWizard.php index 6b8a070..a75fae3 100644 --- a/src/Contao/Widgets/MultiColumnWizard.php +++ b/src/Contao/Widgets/MultiColumnWizard.php @@ -941,7 +941,7 @@ function ($value) { } // Build array of items - if (isset($arrField['eval']['columnPos']) && $arrField['eval']['columnPos'] != '') { + if (!empty($arrField['eval']['columnPos'])) { $arrItems[$i][$objWidget->columnPos]['entry'] = ($arrItems[$i][$objWidget->columnPos]['entry'] ?? '') . $strWidget; $arrItems[$i][$objWidget->columnPos]['valign'] = ($arrField['eval']['valign'] ?? ''); @@ -952,7 +952,7 @@ function ($value) { ( 'entry' => $strWidget, 'valign' => $arrField['eval']['valign'] ?? null, - 'tl_class' => $arrField['eval']['tl_class'], + 'tl_class' => $arrField['eval']['tl_class'] ?? null, 'hide' => $blnHiddenBody ); } @@ -1030,7 +1030,7 @@ protected function initializeWidget(&$arrField, $intRow, $strKey, $varValue) } // Toggle line wrap (textarea) - if (($arrField['inputType'] ?? null) == 'textarea' && $arrField['eval']['rte'] == '') { + if (($arrField['inputType'] ?? null) == 'textarea' && empty($arrField['eval']['rte'])) { $xlabel .= ' ' . Image::getHtml( 'wrap.gif', @@ -1148,9 +1148,9 @@ protected function initializeWidget(&$arrField, $intRow, $strKey, $varValue) } } - $strClass = $GLOBALS[($this->contaoApi->isBackend() ? 'BE_FFL' : 'TL_FFL')][$arrField['inputType']]; + $strClass = $GLOBALS[($this->contaoApi->isBackend() ? 'BE_FFL' : 'TL_FFL')][$arrField['inputType'] ?? null] ?? null; - if ($strClass == '' || !class_exists($strClass)) { + if (empty($strClass) || !class_exists($strClass)) { return null; }