From f0445ed93fa543a78dc5c4718654a5d88e07a047 Mon Sep 17 00:00:00 2001 From: Andrew McMillan Date: Sun, 5 Aug 2007 22:51:04 +1200 Subject: [PATCH] Correct syntax of error response for unprocessable requests. --- inc/CalDAVRequest.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/inc/CalDAVRequest.php b/inc/CalDAVRequest.php index 1f68b275..48c4d819 100644 --- a/inc/CalDAVRequest.php +++ b/inc/CalDAVRequest.php @@ -472,7 +472,7 @@ class CalDAVRequest dbg_error_log("ERROR", " %s: Support for $v:$k properties is not implemented yet", $this->method ); $badprops->NewElement(strtolower($k),false,array("xmlns" => strtolower($v))); } - $error = new XMLElement("error", new XMLElement( "LOCK",$badprops), array("xmlns" => "DAV:") ); + $error = new XMLElement("error", $badprops, array("xmlns" => "DAV:") ); $this->XMLResponse( 422, $error ); }