Revert change

This commit is contained in:
Laurent Destailleur 2021-12-09 19:43:23 +01:00
parent 9624b9aa59
commit c37377626e

View File

@ -8528,7 +8528,9 @@ abstract class CommonObject
} }
} }
} else { } else {
$queryarray[$field] = !empty($this->{$field}) ? $this->{$field} : 0; // Note: If $this->{$field} is not defined, it means there is a bug into definition of ->fields or a missing declaration of property
// We should keep the warning generated by this because it is a bug somewhere else in code, not here.
$queryarray[$field] = $this->{$field};
} }
if ($info['type'] == 'timestamp' && empty($queryarray[$field])) { if ($info['type'] == 'timestamp' && empty($queryarray[$field])) {