commit
9b9cb6842e
@ -75,7 +75,7 @@ class FormAdmin
|
|||||||
|
|
||||||
// If the language to select is not inside the list of available language and empty value is not available, we must find
|
// If the language to select is not inside the list of available language and empty value is not available, we must find
|
||||||
// an alternative as the language code to pre-select (to avoid to have first element in list pre-selected).
|
// an alternative as the language code to pre-select (to avoid to have first element in list pre-selected).
|
||||||
if ($selected && !in_array($selected, $langs_available) && empty($showempty)) {
|
if ($selected && !isset($langs_available[$selected]) && empty($showempty)) {
|
||||||
$tmparray = explode('_', $selected);
|
$tmparray = explode('_', $selected);
|
||||||
if (!empty($tmparray[1])) {
|
if (!empty($tmparray[1])) {
|
||||||
$selected = getLanguageCodeFromCountryCode($tmparray[1]);
|
$selected = getLanguageCodeFromCountryCode($tmparray[1]);
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user