diff --git a/htdocs/core/class/html.formsetup.class.php b/htdocs/core/class/html.formsetup.class.php
index c2183653686..aef01514eba 100644
--- a/htdocs/core/class/html.formsetup.class.php
+++ b/htdocs/core/class/html.formsetup.class.php
@@ -758,6 +758,8 @@ class FormSetupItem
$val = GETPOST($this->confKey, 'array');
if ($val && is_array($val)) {
$val_const = implode(',', $val);
+ } else {
+ $val_const = '';
}
} elseif ($this->type == 'html') {
$val_const = GETPOST($this->confKey, 'restricthtml');