diff --git a/htdocs/core/class/html.form.class.php b/htdocs/core/class/html.form.class.php
index 60ff30c6433..d432bf61d8a 100644
--- a/htdocs/core/class/html.form.class.php
+++ b/htdocs/core/class/html.form.class.php
@@ -5176,7 +5176,7 @@ class Form
*/
static function multiSelectArrayWithCheckbox($htmlname, &$array, $varpage)
{
- global $conf,$user;
+ global $conf,$langs,$user;
if (! empty($conf->global->MAIN_OPTIMIZEFORTEXTBROWSER)) return '';
@@ -5209,7 +5209,7 @@ class Form
}
if ($val['label'])
{
- $lis.='