diff --git a/htdocs/emailcollector/class/emailcollector.class.php b/htdocs/emailcollector/class/emailcollector.class.php index 5eb10ecac86..3028a0bf5df 100644 --- a/htdocs/emailcollector/class/emailcollector.class.php +++ b/htdocs/emailcollector/class/emailcollector.class.php @@ -2738,6 +2738,7 @@ class EmailCollector extends CommonObject if ($errorforthisaction) { $errorforactions++; } else { + $from = (string) $from; if (!empty($contact_static->email) && $contact_static->email != $from) { $from = $contact_static->email; }