Fix php 8.0 warnings of modulebuilder

This commit is contained in:
lmarcouiller
2021-12-09 15:17:18 +01:00
parent 160c8402ea
commit 8b2002fbfb
6 changed files with 10 additions and 10 deletions

View File

@@ -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])) {