summaryrefslogtreecommitdiffstats
path: root/lib/connector/sabre
diff options
context:
space:
mode:
authorBart Visscher <bartv@thisnet.nl>2013-06-28 07:15:38 -0700
committerBart Visscher <bartv@thisnet.nl>2013-06-28 07:15:38 -0700
commitb1a2ddd1498f97129f5f425a77cc88879205357d (patch)
tree12f58228dbd1aa01636d5e4a1d0ce9eb22ced607 /lib/connector/sabre
parent3bedb097537618fbdd462b9e77ac68e0b3d2302f (diff)
parent45c897acf34151672d68ee767ff15ab010676335 (diff)
downloadnextcloud-server-b1a2ddd1498f97129f5f425a77cc88879205357d.tar.gz
nextcloud-server-b1a2ddd1498f97129f5f425a77cc88879205357d.zip
Merge pull request #3799 from owncloud/fix_pdo_statement_wrapper_numrows_on_modification
Fix pdo statement wrapper numrows on modification
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 7aca2e43712..69496c15ada 100644
--- a/lib/connector/sabre/locks.php
+++ b/lib/connector/sabre/locks.php
@@ -182,7 +182,7 @@ class OC_Connector_Sabre_Locks extends Sabre_DAV_Locks_Backend_Abstract {
}
$result = OC_DB::executeAudited( $sql, array(OC_User::getUser(), $uri, $lockInfo->token));
- return $result->numRows() === 1;
+ return $result === 1;
}