From c223bee6df33b3208dbb5a7c46dbeb98eccf10ac Mon Sep 17 00:00:00 2001 From: Jörn Friedrich Dreyer Date: Thu, 20 Jun 2013 14:47:42 +0200 Subject: fix numRows usage in core lib --- lib/connector/sabre/locks.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'lib/connector') 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; } -- cgit v1.2.3