diff --git a/CalDAVClient.php b/CalDAVClient.php index 10a2eb6..26a0ae7 100644 --- a/CalDAVClient.php +++ b/CalDAVClient.php @@ -516,7 +516,8 @@ function DoPUTRequest( $url, $icalendar, $etag = null ) { * * @return int The HTTP Result Code for the DELETE */ - function DoDELETERequest( $url, $etag = null ) { + function DoDELETERequest( $url, $etag = null, $depth = 0 ) { + $this->SetDepth($depth); $this->body = ""; $this->requestMethod = "DELETE";