From 65ee1f17760904e3f140ea4e90ec064986258170 Mon Sep 17 00:00:00 2001 From: Lamrani Abdel Date: Fri, 15 Mar 2024 12:55:30 +0100 Subject: [PATCH] initialise the variable as an empty string --- htdocs/projet/class/project.class.php | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/htdocs/projet/class/project.class.php b/htdocs/projet/class/project.class.php index e8911500494..ca071434835 100644 --- a/htdocs/projet/class/project.class.php +++ b/htdocs/projet/class/project.class.php @@ -2607,7 +2607,7 @@ class Project extends CommonObject $to = ''; $nbMailSend = 0; $error = 0; - $errors_to = 0; + $errors_to = ''; while ($obj = $this->db->fetch_object($resql)) { $to = $obj->email; $numHolidays = num_public_holiday($lastWeekStartTS, $lastWeekEndTS, $mysoc->country_code, 1); @@ -2670,7 +2670,7 @@ class Project extends CommonObject $actioncomm->email_sender = ''; $actioncomm->email_to = $to; - $actioncomm->errors_to = (string) $errors_to; + $actioncomm->errors_to = $errors_to; $actioncomm->elementtype = 'project_task'; $actioncomm->fk_element = (int) $this->element; @@ -2704,7 +2704,7 @@ class Project extends CommonObject $actioncomm->email_sender = ''; $actioncomm->email_to = $to; - $actioncomm->errors_to = (string) $errors_to; + $actioncomm->errors_to = $errors_to; $actioncomm->elementtype = 'project_task'; $actioncomm->fk_element = (int) $this->element;