From 3c3876eb595cb20bc4bfb98800613212cc2312b2 Mon Sep 17 00:00:00 2001 From: altairis Date: Wed, 29 Jan 2020 11:32:24 +0100 Subject: [PATCH] FIX : default lang selection when filter --- htdocs/core/class/html.formadmin.class.php | 7 ++----- 1 file changed, 2 insertions(+), 5 deletions(-) diff --git a/htdocs/core/class/html.formadmin.class.php b/htdocs/core/class/html.formadmin.class.php index 166e0ce2044..0ab3b2f9e55 100644 --- a/htdocs/core/class/html.formadmin.class.php +++ b/htdocs/core/class/html.formadmin.class.php @@ -95,12 +95,9 @@ class FormAdmin 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.= ''; - } + continue; } elseif ($selected == $key) {