From 92c15bed6450a42fc6f0b42d01f0e0ea50afd6bf Mon Sep 17 00:00:00 2001 From: Matthias Date: Tue, 28 May 2013 12:51:32 +0200 Subject: [PATCH] Fixed schedule reply handling for missing organizer --- inc/caldav-PUT-functions.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/inc/caldav-PUT-functions.php b/inc/caldav-PUT-functions.php index f62668c6..5be20eb8 100644 --- a/inc/caldav-PUT-functions.php +++ b/inc/caldav-PUT-functions.php @@ -279,7 +279,7 @@ function handle_schedule_reply ( vCalendar $ical ) { $etag = md5 ( $request->raw_post ); $organizer = $ical->GetOrganizer(); // for now we treat events with out organizers as an error - if ( count ( $organizer ) < 1 ) return false; + if ( empty( $organizer ) ) return false; $attendees = array_merge($organizer,$ical->GetAttendees()); dbg_error_log( "PUT", "Attempting to deliver scheduling request for %d attendees", count($attendees) ); -- 2.11.4.GIT