diff --git a/inc/caldav-client.php b/inc/caldav-client.php index b6a40b04..4ed90be1 100644 --- a/inc/caldav-client.php +++ b/inc/caldav-client.php @@ -268,14 +268,11 @@ class CalDAVClient { * * @return array An array of the relative URLs, etags, and events from the server */ - function GetEventRange( $start, $finish ) { - $xml = << - - - - - + function GetEvents( $start, $finish ) { + $filter = ""; + if ( $start && $finish ) { + $filter = << @@ -283,6 +280,16 @@ class CalDAVClient { +EOFILTER; + } + + $xml = << + + + + + $filter EOXML; $this->SetDepth("1");