From 21274c94328b9df1f2e4be154adb1f0c2785089d Mon Sep 17 00:00:00 2001 From: Faustin Date: Sat, 10 Sep 2022 16:43:04 +0200 Subject: [PATCH] scrutinizer in core/class/html.formsetup.class.php: variable $valconst wasn't defined for all paths --- htdocs/core/class/html.formsetup.class.php | 2 ++ 1 file changed, 2 insertions(+) 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');