small fixes in webdav

This commit is contained in:
Robin Appelman 2011-04-17 13:02:36 +02:00
parent afa2c4a2c3
commit 6affa3281a
2 changed files with 1 additions and 2 deletions

View File

@ -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{

View File

@ -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";
}