Skip to content

Commit

Permalink
FIX : default lang selection when filter
Browse files Browse the repository at this point in the history
  • Loading branch information
altairis-tof committed Jan 29, 2020
1 parent ed8b6f3 commit 3c3876e
Showing 1 changed file with 2 additions and 5 deletions.
7 changes: 2 additions & 5 deletions htdocs/core/class/html.formadmin.class.php
Expand Up @@ -95,12 +95,9 @@ public function select_language($selected = '', $htmlname = 'lang_id', $showauto
if ($showcode == 1) $valuetoshow=$key.' - '.$value;
if ($showcode == 2) $valuetoshow=$value.' ('.$key.')';

if ($filter && is_array($filter))
if ($filter && is_array($filter) && array_key_exists($key, $filter))
{
if ( ! array_key_exists($key, $filter))
{
$out.= '<option value="'.$key.'">'.$valuetoshow.'</option>';
}
continue;
}
elseif ($selected == $key)
{
Expand Down

0 comments on commit 3c3876e

Please sign in to comment.