diff --git a/htdocs/core/class/html.form.class.php b/htdocs/core/class/html.form.class.php
index e5f5aaf7d0a..9c4e2526249 100644
--- a/htdocs/core/class/html.form.class.php
+++ b/htdocs/core/class/html.form.class.php
@@ -6222,7 +6222,6 @@ class Form
$obj = $this->db->fetch_object($resql);
$label = '';
$tmparray = explode(',', $fieldstoshow);
-
foreach ($tmparray as $key => $val)
{
$val = preg_replace('/t\./', '', $val);