From 524f18dd1d6ae8270cc3ffa3829f0639ce8c6afc Mon Sep 17 00:00:00 2001 From: Juraj Date: Mon, 16 Apr 2018 16:23:38 +0200 Subject: [PATCH] Fix broken code Sorry the last fix did solve the displaying of errors but broke some functionality (the approach did not work all the time). --- src/CalDAVClient.php | 7 ++----- 1 file changed, 2 insertions(+), 5 deletions(-) diff --git a/src/CalDAVClient.php b/src/CalDAVClient.php index 079ee08..edeb3bf 100644 --- a/src/CalDAVClient.php +++ b/src/CalDAVClient.php @@ -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(); }