diff --git a/typo3/sysext/install/Classes/Service/LanguagePackService.php b/typo3/sysext/install/Classes/Service/LanguagePackService.php index a6fcb33491a23bfb3dbb30a7bc9c8e80c133ed83..2455718c1f8dbe72b837b585219084cae95c3f40 100644 --- a/typo3/sysext/install/Classes/Service/LanguagePackService.php +++ b/typo3/sysext/install/Classes/Service/LanguagePackService.php @@ -77,7 +77,8 @@ class LanguagePackService */ public function getActiveLanguages(): array { - return $GLOBALS['TYPO3_CONF_VARS']['EXTCONF']['lang']['availableLanguages'] ?? []; + $availableLanguages = $GLOBALS['TYPO3_CONF_VARS']['EXTCONF']['lang']['availableLanguages'] ?? []; + return array_filter($availableLanguages); } /**