Skip to content

Commit

Permalink
Fix broken code
Browse files Browse the repository at this point in the history
Sorry the last fix did solve the displaying of errors but broke some functionality (the approach did not work all the time).
  • Loading branch information
temistokles authored Apr 16, 2018
1 parent 178ccaf commit 524f18d
Showing 1 changed file with 2 additions and 5 deletions.
7 changes: 2 additions & 5 deletions src/CalDAVClient.php
Original file line number Diff line number Diff line change
Expand Up @@ -758,17 +758,14 @@ function FindCalendars( $recursed=false ) {
if ( !isset($this->calendar_home_set[0]) ) {
$this->FindCalendarHome($recursed);
}
else {
$properties =
array(
$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);
}
@$this->DoPROPFINDRequest( $this->first_url_part.$this->calendar_home_set[0], $properties, 1);

return $this->parse_calendar_info();
}
Expand Down

0 comments on commit 524f18d

Please sign in to comment.