diff --git a/htdocs/core/class/html.form.class.php b/htdocs/core/class/html.form.class.php index 519fe14bd60..0ed4a1ad80a 100644 --- a/htdocs/core/class/html.form.class.php +++ b/htdocs/core/class/html.form.class.php @@ -791,8 +791,8 @@ class Form } // Construct $out and $outarray - $out.= ''."\n"; + if ($showempty) $out.= ''."\n"; $num = $this->db->num_rows($resql); $i = 0; if ($num) @@ -821,9 +821,10 @@ class Form array_push($outarray, array('key'=>$obj->rowid, 'value'=>$obj->name, 'label'=>$obj->name)); $i++; + if (($i % 10) == 0) $out.="\n"; } } - $out.= ''; + $out.= ''."\n"; } else {