Commit 42a82799 authored by Stefan Galinski's avatar Stefan Galinski 🎮

[BUGFIX] Fix possible warning

Fixes: https://forge.typo3.org/issues/65827
parent 0a1c30ef
......@@ -95,7 +95,7 @@ class Loader {
/** @var $locales \TYPO3\CMS\Core\Localization\Locales */
$locales = GeneralUtility::makeInstance('\TYPO3\CMS\Core\Localization\Locales');
$locales->initialize();
$isoArray = $locales->getIsoMapping();
$isoArray = (array) $locales->getIsoMapping();
if (array_key_exists($languageKey, $isoArray)) {
$languageKey = $isoArray[$languageKey];
......
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