aboutsummaryrefslogtreecommitdiffstats
path: root/lib/connector/sabre
diff options
context:
space:
mode:
authorJörn Friedrich Dreyer <jfd@butonic.de>2013-06-20 14:47:42 +0200
committerJörn Friedrich Dreyer <jfd@butonic.de>2013-06-24 16:29:59 +0200
commitc223bee6df33b3208dbb5a7c46dbeb98eccf10ac (patch)
treef2c77ec0c7c28d82ffd3f1c0a69bd3e050e58746 /lib/connector/sabre
parent88fc410c1936510b84497b677248cd20db9fd87f (diff)
downloadnextcloud-server-c223bee6df33b3208dbb5a7c46dbeb98eccf10ac.tar.gz
nextcloud-server-c223bee6df33b3208dbb5a7c46dbeb98eccf10ac.zip
fix numRows usage in core lib
Diffstat (limited to 'lib/connector/sabre')
-rw-r--r--lib/connector/sabre/locks.php2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/connector/sabre/locks.php b/lib/connector/sabre/locks.php
index cbc495dec19..e057b059947 100644
--- a/lib/connector/sabre/locks.php
+++ b/lib/connector/sabre/locks.php
@@ -178,7 +178,7 @@ class OC_Connector_Sabre_Locks extends Sabre_DAV_Locks_Backend_Abstract {
$sql = 'DELETE FROM `*PREFIX*locks` WHERE `userid` = ? AND `uri` = ? AND `token` = ?';
$result = OC_DB::executeAudited( $sql, array(OC_User::getUser(), $uri, $lockInfo->token));
- return $result->numRows() === 1;
+ return $result === 1;
}