From 5aed6918bd4a40b267135f6522ac67cf28570e8f Mon Sep 17 00:00:00 2001 From: Ralf Becker Date: Sat, 20 Nov 2021 08:36:35 +0100 Subject: [PATCH] fix PHP 8.0 TypeError: implode(): Argument #1 ($pieces) must be of type array, string given --- infolog/inc/class.infolog_bo.inc.php | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/infolog/inc/class.infolog_bo.inc.php b/infolog/inc/class.infolog_bo.inc.php index 15beb6bfbb..c95eb17f0d 100644 --- a/infolog/inc/class.infolog_bo.inc.php +++ b/infolog/inc/class.infolog_bo.inc.php @@ -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),