Skip to content
Snippets Groups Projects
Commit 42a82799 authored by Stefan Galinski's avatar Stefan Galinski :video_game:
Browse files

[BUGFIX] Fix possible warning

parent 0a1c30ef
No related branches found
Tags 4.2.2
No related merge requests found
......@@ -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];
......
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