From 8239e5ad91153c5d3c8ff0a0a5eea2a304810abc Mon Sep 17 00:00:00 2001 From: Ralf Becker Date: Mon, 22 Nov 2021 11:07:25 +0100 Subject: [PATCH] fix PHP 8.0 TypeError: Cannot access offset of type string on string using renames method calendar_ical::iCalSearch() instead of ::search() which required unchanged signature of calendar_bo::search() --- mail/inc/class.mail_compose.inc.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/mail/inc/class.mail_compose.inc.php b/mail/inc/class.mail_compose.inc.php index 052d9f5bdf..04a048d261 100644 --- a/mail/inc/class.mail_compose.inc.php +++ b/mail/inc/class.mail_compose.inc.php @@ -2077,7 +2077,7 @@ class mail_compose { //error_log(__METHOD__."about to call calendar_ical"); $calendar_ical = new calendar_ical(); - $eventid = $calendar_ical->search($attachment['attachment'],-1); + $eventid = $calendar_ical->iCalSearch($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);