Fix warning

This commit is contained in:
Laurent Destailleur 2021-10-22 11:58:00 +02:00
parent 15dd0f7ab3
commit f354427b3c

View File

@ -1653,10 +1653,14 @@ class ExtraFields
$showsize = 0;
if ($type == 'date') {
$showsize = 10;
$value = dol_print_date($value, 'day'); // For date without hour, date is always GMT for storage and output
if ($value !== '') {
$value = dol_print_date($value, 'day'); // For date without hour, date is always GMT for storage and output
}
} elseif ($type == 'datetime') {
$showsize = 19;
$value = dol_print_date($value, 'dayhour', 'tzuserrel');
if ($value !== '') {
$value = dol_print_date($value, 'dayhour', 'tzuserrel');
}
} elseif ($type == 'int') {
$showsize = 10;
} elseif ($type == 'double') {