From af774dd89c5bbcd5f40f678dff6bdf04618d1816 Mon Sep 17 00:00:00 2001 From: Kribbio Date: Thu, 25 Sep 2014 10:36:17 +1200 Subject: [PATCH] Create array Organizer for merged with array Attendee on 'handle_schedule_reply' function. --- inc/caldav-PUT-functions.php | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/inc/caldav-PUT-functions.php b/inc/caldav-PUT-functions.php index b9ad1cb3..a1c9e3dc 100644 --- a/inc/caldav-PUT-functions.php +++ b/inc/caldav-PUT-functions.php @@ -279,10 +279,11 @@ function handle_schedule_reply ( vCalendar $ical ) { $ic = $resources[0]; $etag = md5 ( $request->raw_post ); $organizer = $ical->GetOrganizer(); + $arrayOrganizer = array($organizer); // for now we treat events with out organizers as an error - if ( empty( $organizer ) ) return false; + if ( empty( $arrayOrganizer ) ) return false; - $attendees = array_merge($organizer,$ical->GetAttendees()); + $attendees = array_merge($arrayOrganizer,$ical->GetAttendees()); dbg_error_log( "PUT", "Attempting to deliver scheduling request for %d attendees", count($attendees) ); foreach( $attendees AS $k => $attendee ) {