Fixed schedule reply handling for missing organizer

This commit is contained in:
Matthias 2013-05-28 12:51:32 +02:00 committed by Andrew McMillan
parent b97ec56851
commit 92c15bed64

View File

@ -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) );