Fix php 8 warning

This commit is contained in:
ptibogxiv 2023-01-11 13:33:29 +01:00 committed by GitHub
parent 313adba8f4
commit 7bcaae86f4
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -2514,7 +2514,7 @@ function fieldList($fieldlist, $obj = '', $tabname = '', $context = '')
print '</td>';
} elseif ($value == 'type_duration') {
print '<td>';
print $form->selectTypeDuration('', $obj->{$value}, array('i','h'));
print $form->selectTypeDuration('', (!empty($obj->{$value}) ? $obj->{$value}:''), array('i','h'));
print '</td>';
} else {
$fieldValue = isset($obj->{$value}) ? $obj->{$value}: '';