initialise the variable as an empty string
This commit is contained in:
parent
2c1be590d9
commit
65ee1f1776
1 changed files with 3 additions and 3 deletions
|
|
@ -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;
|
||||
|
|
|
|||
Loading…
Reference in a new issue