fix PHP 8.0 TypeError: implode(): Argument #1 ($pieces) must be of type array, string given

This commit is contained in:
Ralf Becker 2021-11-20 08:36:35 +01:00
parent 47b3f5c239
commit 5aed6918bd

View File

@ -1396,6 +1396,7 @@ class infolog_bo
*/
function import_mail($_addresses,$_subject,$_message,$_attachments,$_date)
{
$names = $emails = [];
foreach($_addresses as $address)
{
$names[] = $address['name'];
@ -1407,7 +1408,7 @@ class infolog_bo
$info = array(
'info_id' => 0,
'info_type' => $type,
'info_from' => implode(', ',$names) . implode(', ', $emails),
'info_from' => implode(', ', $names) . implode(', ', $emails),
'info_subject' => $_subject,
'info_des' => $_message,
'info_startdate' => Api\DateTime::server2user($_date),