From a2ac1642f705b3ea04a108085cbb0b07d5afda46 Mon Sep 17 00:00:00 2001 From: SephGER Date: Tue, 1 Oct 2019 14:56:57 +0200 Subject: [PATCH] Updated DoDELETERequest function with Depth My CalDav Server throws an error 400 if I try to delete an event and this is not 0. Maybe others have that problem too so they can find a solution here. --- CalDAVClient.php | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) 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";