From f954adf29cfbe26ea1e9298f80935819ff6292fc Mon Sep 17 00:00:00 2001 From: Regis Houssin Date: Mon, 20 Feb 2006 11:27:54 +0000 Subject: [PATCH] bug #15811 --- htdocs/includes/boxes/box_comptes.php | 3 ++- htdocs/includes/boxes/modules_boxes.php | 2 +- 2 files changed, 3 insertions(+), 2 deletions(-) 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'].'"';