From 3227f12a6ee8b8ef57ced438cfee1b3b05017193 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Fr=C3=A9d=C3=A9ric=20FRANCE?= Date: Sun, 1 Dec 2019 18:27:06 +0100 Subject: [PATCH] The variable $arraylist seems to be defined... The variable $arraylist seems to be defined by a foreach iteration. Are you sure the iterator is never empty, otherwise this variable is not defined? --- htdocs/core/class/html.form.class.php | 2 ++ 1 file changed, 2 insertions(+) diff --git a/htdocs/core/class/html.form.class.php b/htdocs/core/class/html.form.class.php index 11c6e4899b5..ef074c6466a 100644 --- a/htdocs/core/class/html.form.class.php +++ b/htdocs/core/class/html.form.class.php @@ -228,6 +228,7 @@ class Form elseif (preg_match('/^select;/', $typeofdata)) { $arraydata = explode(',', preg_replace('/^select;/', '', $typeofdata)); + $arraylist = array(); foreach ($arraydata as $val) { $tmp = explode(':', $val); @@ -265,6 +266,7 @@ class Form elseif (preg_match('/^select;/', $typeofdata)) { $arraydata = explode(',', preg_replace('/^select;/', '', $typeofdata)); + $arraylist = array(); foreach ($arraydata as $val) { $tmp = explode(':', $val);