diff --git a/Classes/Updates/SwitchableControllerActionsPluginUpdater.php b/Classes/Updates/SwitchableControllerActionsPluginUpdater.php index 41d745b..aa5ef71 100644 --- a/Classes/Updates/SwitchableControllerActionsPluginUpdater.php +++ b/Classes/Updates/SwitchableControllerActionsPluginUpdater.php @@ -181,18 +181,19 @@ protected function getTargetListType(string $sourceListType, string $switchableC protected function getAllowedSettingsFromFlexForm(string $listType): array { - $flexFormFile = $GLOBALS['TCA']['tt_content']['columns']['pi_flexform']['config']['ds'][$listType . ',list']; - $flexFormContent = file_get_contents(GeneralUtility::getFileAbsFileName(substr(trim($flexFormFile), 5))); - $flexFormData = GeneralUtility::xml2array($flexFormContent); - - // Iterate each sheet and extract all settings $settings = []; - foreach ($flexFormData['sheets'] as $sheet) { - foreach ($sheet['ROOT']['el'] as $setting => $tceForms) { - $settings[] = $setting; + $flexFormFile = $GLOBALS['TCA']['tt_content']['columns']['pi_flexform']['config']['ds'][$listType . ',list']; + if ($flexFormFile) { + $flexFormContent = file_get_contents(GeneralUtility::getFileAbsFileName(substr(trim($flexFormFile), 5))); + $flexFormData = GeneralUtility::xml2array($flexFormContent); + + // Iterate each sheet and extract all settings + foreach ($flexFormData['sheets'] as $sheet) { + foreach ($sheet['ROOT']['el'] as $setting => $tceForms) { + $settings[] = $setting; + } } } - return $settings; } diff --git a/README.md b/README.md index 4679293..08895a1 100644 --- a/README.md +++ b/README.md @@ -1,6 +1,6 @@ # fp_masterquiz -version 4.2.1 +version 4.2.2 TYPO3 extension to create a quiz, poll or test. The participant result will be saved in the DB too and can be deleted automatically via Scheduler. diff --git a/ext_emconf.php b/ext_emconf.php index 582bc3c..d4dea4a 100644 --- a/ext_emconf.php +++ b/ext_emconf.php @@ -18,7 +18,7 @@ 'state' => 'stable', 'createDirs' => '', 'clearCacheOnLoad' => 0, - 'version' => '4.2.1', + 'version' => '4.2.2', 'constraints' => [ 'depends' => [ 'typo3' => '12.4.0-12.4.99',