From 6affa3281a4965d233783a26935bc842633d30dd Mon Sep 17 00:00:00 2001 From: Robin Appelman Date: Sun, 17 Apr 2011 13:02:36 +0200 Subject: [PATCH] small fixes in webdav --- files/webdav.php | 1 - lib/HTTP/WebDAV/Server/Filesystem.php | 2 +- 2 files changed, 1 insertion(+), 2 deletions(-) diff --git a/files/webdav.php b/files/webdav.php index 4b1393c110b..a6e0d256551 100644 --- a/files/webdav.php +++ b/files/webdav.php @@ -41,7 +41,6 @@ $passwd=$_SERVER['PHP_AUTH_PW']; if(OC_USER::login($user,$passwd)){ OC_UTIL::setUpFS(); $server = new HTTP_WebDAV_Server_Filesystem(); - $server->db_name = $CONFIG_DBNAME; $server->ServeRequest($CONFIG_DATADIRECTORY); }else{ diff --git a/lib/HTTP/WebDAV/Server/Filesystem.php b/lib/HTTP/WebDAV/Server/Filesystem.php index 1c1dbdb5fb7..49b2397175a 100644 --- a/lib/HTTP/WebDAV/Server/Filesystem.php +++ b/lib/HTTP/WebDAV/Server/Filesystem.php @@ -410,7 +410,7 @@ OC_FILESYSTEM::unlink($path); } $query = OC_DB::prepare("DELETE FROM *PREFIX*properties WHERE path = ?"); - $query->execute(array($options[path])); + $query->execute(array($options['path'])); return "204 No Content"; } -- 2.39.5