mirror of
https://github.com/EGroupware/egroupware.git
synced 2024-12-22 06:30:59 +01:00
fix PHP 8.0 TypeError: implode(): Argument #1 ($pieces) must be of type array, string given
This commit is contained in:
parent
47b3f5c239
commit
5aed6918bd
@ -1396,6 +1396,7 @@ class infolog_bo
|
|||||||
*/
|
*/
|
||||||
function import_mail($_addresses,$_subject,$_message,$_attachments,$_date)
|
function import_mail($_addresses,$_subject,$_message,$_attachments,$_date)
|
||||||
{
|
{
|
||||||
|
$names = $emails = [];
|
||||||
foreach($_addresses as $address)
|
foreach($_addresses as $address)
|
||||||
{
|
{
|
||||||
$names[] = $address['name'];
|
$names[] = $address['name'];
|
||||||
@ -1407,7 +1408,7 @@ class infolog_bo
|
|||||||
$info = array(
|
$info = array(
|
||||||
'info_id' => 0,
|
'info_id' => 0,
|
||||||
'info_type' => $type,
|
'info_type' => $type,
|
||||||
'info_from' => implode(', ',$names) . implode(', ', $emails),
|
'info_from' => implode(', ', $names) . implode(', ', $emails),
|
||||||
'info_subject' => $_subject,
|
'info_subject' => $_subject,
|
||||||
'info_des' => $_message,
|
'info_des' => $_message,
|
||||||
'info_startdate' => Api\DateTime::server2user($_date),
|
'info_startdate' => Api\DateTime::server2user($_date),
|
||||||
|
Loading…
Reference in New Issue
Block a user