Remove unnecessary array

Now it is right...
This commit is contained in:
rugk 2016-07-18 13:12:54 +02:00 committed by GitHub
parent 19d5659a8f
commit 80e9d75477
1 changed files with 1 additions and 1 deletions

View File

@ -141,7 +141,7 @@ class i18n
// check if the lang cookie was set and that language exists
if (array_key_exists('lang', $_COOKIE) && in_array($_COOKIE['lang'], $availableLanguages))
{
$match = $availableLanguages[$_COOKIE['lang']];
$match = $availableLanguages['lang'];
}
// find a translation file matching the browsers language preferences
else