From 4fde85258f523b71fe81042bfed2ba008593a6cd Mon Sep 17 00:00:00 2001 From: Georg Ringer Date: Wed, 5 Jul 2023 06:46:38 +0200 Subject: [PATCH] [BUGFIX] Fix notice if type is missing --- Classes/Provider/ExtensionProvider.php | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/Classes/Provider/ExtensionProvider.php b/Classes/Provider/ExtensionProvider.php index 657eb57..b01ae6b 100644 --- a/Classes/Provider/ExtensionProvider.php +++ b/Classes/Provider/ExtensionProvider.php @@ -31,10 +31,11 @@ public function get(array $data) $emConfUtility = GeneralUtility::makeInstance(EmConfUtility::class); foreach ($allExtensions as $key => $f) { - $extensionConfig = $emConfUtility->includeEmConf($key, $f['packagePath']); - if ($extensionConfig['type'] === 'System') { + $extensionConfig = (array)$emConfUtility->includeEmConf($key, $f['packagePath']); + if (($extensionConfig['type'] ?? '') === 'System' || ($extensionConfig['author'] ?? '') === 'TYPO3 Core Team') { continue; } + $data['extensions'][$key] = $extensionConfig; $data['extensions'][$key]['isLoaded'] = (int)ExtensionManagementUtility::isLoaded($key); }