diff --git a/htdocs/societe/rib.php b/htdocs/societe/rib.php index e0ad760c5066bb2b135a59f34c3f1a513e6e8107..5bb3710c7b54de7a9f4d4655a9765f19407f482a 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>';