From 6dcb6405f36bae94329c1d66ce05c24345bf4bb7 Mon Sep 17 00:00:00 2001 From: Braito Date: Tue, 27 Dec 2022 16:44:19 +0100 Subject: [PATCH] php 8 warning fk_user_cloture --- htdocs/projet/class/project.class.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/htdocs/projet/class/project.class.php b/htdocs/projet/class/project.class.php index 9213fc1470d..ccefdb4c600 100644 --- a/htdocs/projet/class/project.class.php +++ b/htdocs/projet/class/project.class.php @@ -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;