diff --git a/htdocs/admin/boxes.php b/htdocs/admin/boxes.php index 7dd460c799b..6c59784ed88 100644 --- a/htdocs/admin/boxes.php +++ b/htdocs/admin/boxes.php @@ -190,8 +190,13 @@ if ($resql) while ($i < $num) { $obj = $db->fetch_object($resql); - - if (in_array($obj->rowid, $actives)) + + $module=eregi_replace('.php$','',$obj->file); + include_once(DOL_DOCUMENT_ROOT."/includes/boxes/".$module.".php"); + + $box=new $module(); + + if (in_array($obj->rowid, $actives) && $box->box_multiple <> 1) { // La boite est déjà activée // \todo @@ -201,11 +206,6 @@ if ($resql) { $var = ! $var; - $module=eregi_replace('.php$','',$obj->file); - include_once(DOL_DOCUMENT_ROOT."/includes/boxes/".$module.".php"); - - $box=new $module(); - print '