Skip to content
Snippets Groups Projects
Commit 34a7757b authored by Kevin Ditscheid's avatar Kevin Ditscheid
Browse files

[BUGFIX] Make getExtensionConfiguration return empty array on failure

parent 7bd871f8
No related branches found
No related tags found
1 merge request!13Feature upgrade to9 lts
......@@ -43,11 +43,12 @@ class ExtensionUtility {
*/
public static function getExtensionConfiguration(): array {
if (version_compare(VersionNumberUtility::getCurrentTypo3Version(), '9.0.0', '<')) {
return \unserialize(
$extConf = \unserialize(
$GLOBALS['TYPO3_CONF_VARS']['EXT']['extConf']['sg_mail'], ['allowed_classes' => FALSE]
);
} else {
return $GLOBALS['TYPO3_CONF_VARS']['EXTENSIONS']['sg_mail'];
return $extConf ?? [];
}
return $GLOBALS['TYPO3_CONF_VARS']['EXTENSIONS']['sg_mail'] ?? [];
}
}
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment