diff --git a/src/CalDAVClient.php b/src/CalDAVClient.php index f69879d..079ee08 100644 --- a/src/CalDAVClient.php +++ b/src/CalDAVClient.php @@ -758,16 +758,18 @@ function FindCalendars( $recursed=false ) { if ( !isset($this->calendar_home_set[0]) ) { $this->FindCalendarHome($recursed); } - $properties = - array( - 'resourcetype', - 'displayname', - 'http://calendarserver.org/ns/:getctag', - 'http://apple.com/ns/ical/:calendar-color', - 'http://apple.com/ns/ical/:calendar-order', - ); - $this->DoPROPFINDRequest( $this->first_url_part.$this->calendar_home_set[0], $properties, 1); - + else { + $properties = + array( + 'resourcetype', + 'displayname', + 'http://calendarserver.org/ns/:getctag', + 'http://apple.com/ns/ical/:calendar-color', + 'http://apple.com/ns/ical/:calendar-order', + ); + $this->DoPROPFINDRequest( $this->first_url_part.$this->calendar_home_set[0], $properties, 1); + } + return $this->parse_calendar_info(); }