From 421c3fb35b7f5e27344f3c2b96f70144225bcc67 Mon Sep 17 00:00:00 2001 From: Laurent Destailleur Date: Fri, 7 Jun 2013 13:41:32 +0200 Subject: [PATCH] Fix: Bad param 'zone' into printCommon --- htdocs/core/class/html.form.class.php | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) 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 {