mirror of
https://github.com/EGroupware/egroupware.git
synced 2024-12-27 00:58:56 +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
8f73669d6a
commit
461c0171da
@ -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