From 9f70526038b2c395229f0909d437286d1c9418bb Mon Sep 17 00:00:00 2001 From: Ralf Becker Date: Mon, 15 Nov 2021 17:57:06 +0100 Subject: [PATCH] fix PHP 8.0 TypeError: Cannot access offset of type string on string --- mail/inc/class.mail_ui.inc.php | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/mail/inc/class.mail_ui.inc.php b/mail/inc/class.mail_ui.inc.php index c67f8b7b5c..02fd481b5e 100644 --- a/mail/inc/class.mail_ui.inc.php +++ b/mail/inc/class.mail_ui.inc.php @@ -2757,10 +2757,7 @@ $filter['before']= date("d-M-Y", $cutoffdate2); { //error_log(__METHOD__."about to call calendar_ical"); $calendar_ical = new calendar_ical(); - $eventid = $calendar_ical->search($attachment['attachment'],-1); - //error_log(__METHOD__.array2string($eventid)); - if (!$eventid) $eventid = -1; - $event = $calendar_ical->importVCal($attachment['attachment'],(is_array($eventid)?$eventid[0]:$eventid),null,true,0,'',null,$attachment['charset']); + $event = $calendar_ical->importVCal($attachment['attachment'],-1,null,true,0,'',null,$attachment['charset']); //error_log(__METHOD__.$event); if ((int)$event > 0) {