mirror of
https://github.com/nextcloud/server.git
synced 2026-06-09 08:44:07 -04:00
fix problem with removing locks
This commit is contained in:
parent
0fa41e9171
commit
18a36be28c
1 changed files with 1 additions and 1 deletions
|
|
@ -143,7 +143,7 @@ class OC_Connector_Sabre_Locks extends Sabre_DAV_Locks_Backend_Abstract {
|
|||
*/
|
||||
public function unlock($uri,Sabre_DAV_Locks_LockInfo $lockInfo) {
|
||||
|
||||
$query = OC_DB::prepare( 'DELETE FROM *PREFIX*locks WHERE userid = ? AND path=? AND token=?' );
|
||||
$query = OC_DB::prepare( 'DELETE FROM *PREFIX*locks WHERE userid = ? AND uri=? AND token=?' );
|
||||
$result = $query->execute( array(OC_USER::getUser(),$uri,$lockInfo->token));
|
||||
|
||||
return $result->numRows() === 1;
|
||||
|
|
|
|||
Loading…
Reference in a new issue