From 364305ed64c22f00ddce97e1d3812320446241d2 Mon Sep 17 00:00:00 2001 From: Ralf Becker Date: Tue, 9 Oct 2018 13:56:27 +0200 Subject: [PATCH] fix PHP Warning: Illegal string offset 'owner' --- calendar/inc/class.calendar_groupdav.inc.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/calendar/inc/class.calendar_groupdav.inc.php b/calendar/inc/class.calendar_groupdav.inc.php index 5a3e2b831c..6435b69af4 100644 --- a/calendar/inc/class.calendar_groupdav.inc.php +++ b/calendar/inc/class.calendar_groupdav.inc.php @@ -1365,9 +1365,9 @@ class calendar_groupdav extends Api\CalDAV\Handler // Work around problems with Outlook CalDAV Synchroniser (https://caldavsynchronizer.org/) // - sends a DELETE to reject a meeting request --> deletes event for all participants, if user has delete rights on the calendar // --> only set status for everyone else but the organizer - self::get_agent() == 'caldavsynchronizer' && $event['owner'] != $user) + self::get_agent() == 'caldavsynchronizer' && is_array($event) && $event['owner'] != $user) { - if (!$return_no_access || $event['owner'] != $user) + if (is_array($event) && (!$return_no_access || $event['owner'] != $user)) { // check if user is a participant or one of the groups he is a member of --> reject the meeting request $ret = '403 Forbidden';