File tree Expand file tree Collapse file tree 1 file changed +6
-4
lines changed Expand file tree Collapse file tree 1 file changed +6
-4
lines changed Original file line number Diff line number Diff line change @@ -782,10 +782,12 @@ protected function extendTypeArrayWithTypoScriptTypes(array $types): array
782782 $ typoScript = BackendUtility::getPagesTSconfig (FrontendUtility::getCurrentPageIdentifier ());
783783 if (!empty ($ typoScript ['tx_powermail. ' ]['flexForm. ' ])) {
784784 $ configuration = $ typoScript ['tx_powermail. ' ]['flexForm. ' ];
785- foreach ((array )$ configuration ['type. ' ]['addFieldOptions. ' ] as $ fieldTypeName => $ fieldType ) {
786- if (!empty ($ fieldType ['dataType ' ])) {
787- $ fieldTypeName = substr ($ fieldTypeName , 0 , -1 );
788- $ types [$ fieldTypeName ] = (int )$ fieldType ['dataType ' ];
785+ if (isset ($ configuration ['type. ' ]['addFieldOptions. ' ])) {
786+ foreach ((array )$ configuration ['type. ' ]['addFieldOptions. ' ] as $ fieldTypeName => $ fieldType ) {
787+ if (!empty ($ fieldType ['dataType ' ])) {
788+ $ fieldTypeName = substr ($ fieldTypeName , 0 , -1 );
789+ $ types [$ fieldTypeName ] = (int )$ fieldType ['dataType ' ];
790+ }
789791 }
790792 }
791793 }
You can’t perform that action at this time.
0 commit comments