Skip to content

Commit

Permalink
Merge pull request #2 from temistokles/patch-2
Browse files Browse the repository at this point in the history
More PHP notices
  • Loading branch information
carduz authored Jan 10, 2018
2 parents 561c07e + a88de5a commit 178ccaf
Showing 1 changed file with 12 additions and 10 deletions.
22 changes: 12 additions & 10 deletions src/CalDAVClient.php
Original file line number Diff line number Diff line change
Expand Up @@ -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();
}

Expand Down

0 comments on commit 178ccaf

Please sign in to comment.