mirror of
https://github.com/EGroupware/egroupware.git
synced 2024-11-24 17:04:14 +01:00
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()
This commit is contained in:
parent
76e4a2acd3
commit
8239e5ad91
@ -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);
|
||||
|
Loading…
Reference in New Issue
Block a user