Merge pull request #23351 from braito4/patch-6

php 8 warning fk_user_cloture
This commit is contained in:
Laurent Destailleur 2022-12-28 02:17:47 +01:00 committed by GitHub
commit 85f6bd4679
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;