From 3a4ad7c03855c94fb205314c0ead494c652f55a7 Mon Sep 17 00:00:00 2001 From: Laurent Destailleur <eldy@destailleur.fr> Date: Sun, 19 Apr 2015 01:09:30 +0200 Subject: [PATCH] Bad colspan --- htdocs/societe/rib.php | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/htdocs/societe/rib.php b/htdocs/societe/rib.php index e0ad760c506..5bb3710c7b5 100644 --- a/htdocs/societe/rib.php +++ b/htdocs/societe/rib.php @@ -416,8 +416,11 @@ if ($socid && $action != 'edit' && $action != "create") $var = !$var; } - if (count($rib_list) == 0) { - print '<tr '.$bc[0].'><td colspan="7" align="center">'.$langs->trans("NoBANRecord").'</td></tr>'; + if (count($rib_list) == 0) + { + $colspan=7; + if (! empty($conf->prelevement->enabled)) $colspan++; + print '<tr '.$bc[0].'><td colspan="'.$colspan.'" align="center">'.$langs->trans("NoBANRecord").'</td></tr>'; } print '</table>'; -- GitLab