mirror of
https://github.com/Dolibarr/dolibarr.git
synced 2026-02-13 03:12:35 +01:00
Fix php 8.0 warnings of modulebuilder
This commit is contained in:
@@ -8528,7 +8528,7 @@ abstract class CommonObject
|
||||
}
|
||||
}
|
||||
} else {
|
||||
$queryarray[$field] = $this->{$field};
|
||||
$queryarray[$field] = !empty($this->{$field}) ? $this->{$field} : 0;
|
||||
}
|
||||
|
||||
if ($info['type'] == 'timestamp' && empty($queryarray[$field])) {
|
||||
|
||||
Reference in New Issue
Block a user