Bad colspan

This commit is contained in:
Laurent Destailleur 2015-04-19 01:09:30 +02:00
parent 5597e4a8b6
commit 3a4ad7c038

View File

@ -416,8 +416,11 @@ if ($socid && $action != 'edit' && $action != "create")
$var = !$var; $var = !$var;
} }
if (count($rib_list) == 0) { if (count($rib_list) == 0)
print '<tr '.$bc[0].'><td colspan="7" align="center">'.$langs->trans("NoBANRecord").'</td></tr>'; {
$colspan=7;
if (! empty($conf->prelevement->enabled)) $colspan++;
print '<tr '.$bc[0].'><td colspan="'.$colspan.'" align="center">'.$langs->trans("NoBANRecord").'</td></tr>';
} }
print '</table>'; print '</table>';