diff --git a/src/MadeYourDay/Contao/CustomElements.php b/src/MadeYourDay/Contao/CustomElements.php index edf30a4..93e1ae2 100644 --- a/src/MadeYourDay/Contao/CustomElements.php +++ b/src/MadeYourDay/Contao/CustomElements.php @@ -356,7 +356,7 @@ protected function prepareSaveData($fieldPrefix, $fieldsConfig) { foreach ($fieldsConfig as $fieldName => $fieldConfig) { - if ($fieldConfig['inputType'] === 'list') { + if (isset($fieldConfig['inputType']) && $fieldConfig['inputType'] === 'list') { // creates an empty array for a empty lists $fieldData = $this->getNestedValueReference($fieldPrefix . $fieldName); @@ -730,7 +730,7 @@ protected function createDcaMultiEdit($dc) $standardFields = is_array($config['standardFields']) ? $config['standardFields'] : array(); foreach ($config['fields'] as $fieldName => $fieldConfig) { - if ($fieldConfig['inputType'] === 'standardField') { + if (isset($fieldConfig['inputType']) && $fieldConfig['inputType'] === 'standardField') { $paletteFields[] = $fieldName; } }