mirror of
https://github.com/EGroupware/egroupware.git
synced 2024-11-21 23:43:17 +01:00
fix PHP 8.0 TypeError: Cannot access offset of type string on string
This commit is contained in:
parent
383a6350f5
commit
9f70526038
@ -2757,10 +2757,7 @@ $filter['before']= date("d-M-Y", $cutoffdate2);
|
|||||||
{
|
{
|
||||||
//error_log(__METHOD__."about to call calendar_ical");
|
//error_log(__METHOD__."about to call calendar_ical");
|
||||||
$calendar_ical = new calendar_ical();
|
$calendar_ical = new calendar_ical();
|
||||||
$eventid = $calendar_ical->search($attachment['attachment'],-1);
|
$event = $calendar_ical->importVCal($attachment['attachment'],-1,null,true,0,'',null,$attachment['charset']);
|
||||||
//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']);
|
|
||||||
//error_log(__METHOD__.$event);
|
//error_log(__METHOD__.$event);
|
||||||
if ((int)$event > 0)
|
if ((int)$event > 0)
|
||||||
{
|
{
|
||||||
|
Loading…
Reference in New Issue
Block a user