Commit d1d1e9cc authored by Kevin Ditscheid's avatar Kevin Ditscheid

[BUGFIX] Make getExtensionConfiguration return empty array on failure

parent a6fe6d8c
......@@ -41,12 +41,13 @@ class ExtensionUtility {
* @return array
*/
public static function getExtensionConfiguration(): array {
if (\version_compare(VersionNumberUtility::getCurrentTypo3Version(), '9.0.0', '<')) {
return \unserialize(
if (version_compare(VersionNumberUtility::getCurrentTypo3Version(), '9.0.0', '<')) {
$extConf = \unserialize(
$GLOBALS['TYPO3_CONF_VARS']['EXT']['extConf']['lfeditor'], ['allowed_classes' => FALSE]
);
return $extConf ?? [];
}
return $GLOBALS['TYPO3_CONF_VARS']['EXTENSIONS']['lfeditor'];
return $GLOBALS['TYPO3_CONF_VARS']['EXTENSIONS']['lfeditor'] ?? [];
}
}
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment