diff --git a/htdocs/core/class/commonobject.class.php b/htdocs/core/class/commonobject.class.php
index e3c93618b08..478bb3ea460 100644
--- a/htdocs/core/class/commonobject.class.php
+++ b/htdocs/core/class/commonobject.class.php
@@ -5575,18 +5575,20 @@ abstract class CommonObject
$newInput = ' ';
$newInput.= $this->showInputField($newval, $keyprefix.$key.$keysuffix.'[]', '', $moreparam, '', '', $showsize).'
';
- $out.= '
- ';
+ ';
+ }
}
if (!empty($hidden)) {
$out='';