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);