Fix warning
This commit is contained in:
parent
15dd0f7ab3
commit
f354427b3c
@ -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') {
|
||||
|
||||
Loading…
Reference in New Issue
Block a user