php 8 warning fk_user_cloture

This commit is contained in:
Braito 2022-12-27 16:44:19 +01:00 committed by GitHub
parent 3f99670b97
commit 6dcb6405f3
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -2265,7 +2265,7 @@ class Project extends CommonObject
$this->user_creation = $cuser;
}
if ($obj->fk_user_cloture) {
if (!empty($obj->fk_user_cloture)) {
$cluser = new User($this->db);
$cluser->fetch($obj->fk_user_cloture);
$this->user_cloture = $cluser;