diff --git a/htdocs/includes/boxes/box_comptes.php b/htdocs/includes/boxes/box_comptes.php index 7fff988190c..d921fea4903 100644 --- a/htdocs/includes/boxes/box_comptes.php +++ b/htdocs/includes/boxes/box_comptes.php @@ -110,7 +110,8 @@ class box_comptes extends ModeleBoxes { $this->info_box_contents[$i][-1] = array('class' => 'liste_total'); $this->info_box_contents[$i][0] = array('align' => 'right', - 'colspan' => '4', + 'width' => '75%', + 'colspan' => '3', 'class' => 'liste_total', 'text' => $langs->trans('Total') ); diff --git a/htdocs/includes/boxes/modules_boxes.php b/htdocs/includes/boxes/modules_boxes.php index 94769a68f0a..3c5c8cfc698 100644 --- a/htdocs/includes/boxes/modules_boxes.php +++ b/htdocs/includes/boxes/modules_boxes.php @@ -90,7 +90,7 @@ class ModeleBoxes } // Affiche chaque cellule - for ($j=0, $m=sizeof($contents[$i]); $j < $m; $j++) + for ($j=0, $m=isset($contents[$i][-1])?sizeof($contents[$i])-1:sizeof($contents[$i]); $j < $m; $j++) { $tdparam=""; if (isset($contents[$i][$j]['align'])) $tdparam.=' align="'. $contents[$i][$j]['align'].'"';