diff --git a/htdocs/boxes.php b/htdocs/boxes.php index 75a906a02ce..edbcb729c34 100644 --- a/htdocs/boxes.php +++ b/htdocs/boxes.php @@ -52,7 +52,7 @@ function printBoxesArea($user,$areacode) print ''; // Affichage colonne gauche - print '\n"; // Affichage colonne droite - print '
'."\n"; + print ''."\n"; print "\n\n"; print '
'."\n"; @@ -73,21 +73,21 @@ function printBoxesArea($user,$areacode) } // If no box on left, we add an invisible empty box - if ($ii==0) - { +// if ($ii==0) +// { $emptybox=new ModeleBoxes($db); $emptybox->box_id='A'; $emptybox->info_box_head=array(); $emptybox->info_box_contents=array(); $emptybox->showBox(array(),array()); - } +// } print "
\n"; print "\n"; print "
'; + print ''; print "\n\n"; print '\n"; print "\n"; @@ -349,7 +349,8 @@ class InfoBox if (! $userid || $userid == 0) return 0; - $user = new User($this->db,$userid); + $user = new User($this->db); + $user->id=$userid; $this->db->begin();