Fix when first label is '0'
This commit is contained in:
parent
8322a4e850
commit
7d4334a353
1 changed files with 1 additions and 1 deletions
|
|
@ -940,7 +940,7 @@ if ($sql) {
|
|||
}
|
||||
$labeltouse = (($xlabel || $xlabel == '0') ? dol_trunc($xlabel, 20, 'middle') : ($xlabel === '' ? $langs->transnoentitiesnoconv("Empty") : $langs->transnoentitiesnoconv("NotDefined")));
|
||||
|
||||
if ($oldlabeltouse && ($labeltouse != $oldlabeltouse)) {
|
||||
if ($oldlabeltouse !== '' && ($labeltouse != $oldlabeltouse)) {
|
||||
$xi++; // Increase $xi
|
||||
}
|
||||
//var_dump($labeltouse.' '.$oldlabeltouse.' '.$xi);
|
||||
|
|
|
|||
Loading…
Reference in a new issue