From 533f162e3e23b23e3f95f9182fae4f422720116c Mon Sep 17 00:00:00 2001 From: Laurent Destailleur Date: Wed, 16 Jan 2013 17:09:46 +0100 Subject: [PATCH] Fix: var not defined --- htdocs/admin/boxes.php | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/htdocs/admin/boxes.php b/htdocs/admin/boxes.php index 5d9c4f998c2..6fb5e458945 100644 --- a/htdocs/admin/boxes.php +++ b/htdocs/admin/boxes.php @@ -237,12 +237,14 @@ $sql.= " AND b.box_id = bd.rowid"; $sql.= " AND b.fk_user=0"; $sql.= " ORDER by b.position, b.box_order"; +dol_syslog("Search available boxes sql=".$sql, LOG_DEBUG); $resql = $db->query($sql); if ($resql) { $num = $db->num_rows($resql); $i = 0; $decalage=0; + $var=false; while ($i < $num) { $var = ! $var; @@ -314,7 +316,7 @@ if ($resql) } -// Available boxes +// Available boxes to activate $boxtoadd=InfoBox::listBoxes($db,'available',-1,null,$actives); print "
\n";