aboutsummaryrefslogtreecommitdiffstats
path: root/lib/connector/sabre
diff options
context:
space:
mode:
authorThomas Mueller <thomas.mueller@tmit.eu>2013-06-14 13:54:41 +0200
committerThomas Mueller <thomas.mueller@tmit.eu>2013-06-14 13:54:41 +0200
commit5c7d7549ea8803596307882f2ee9214808c82451 (patch)
tree62724e32b8a3c1ac889d273bd359046007fff8cd /lib/connector/sabre
parent471b9c055a16b3f7b8100870e40fffe4d6b2d646 (diff)
downloadnextcloud-server-5c7d7549ea8803596307882f2ee9214808c82451.tar.gz
nextcloud-server-5c7d7549ea8803596307882f2ee9214808c82451.zip
coding style
Diffstat (limited to 'lib/connector/sabre')
-rw-r--r--lib/connector/sabre/locks.php5
1 files changed, 4 insertions, 1 deletions
diff --git a/lib/connector/sabre/locks.php b/lib/connector/sabre/locks.php
index 1364aae0103..cbc495dec19 100644
--- a/lib/connector/sabre/locks.php
+++ b/lib/connector/sabre/locks.php
@@ -126,7 +126,10 @@ class OC_Connector_Sabre_Locks extends Sabre_DAV_Locks_Backend_Abstract {
$locks = $this->getLocks($uri, false);
$exists = false;
foreach($locks as $lock) {
- if ($lock->token == $lockInfo->token) $exists = true;
+ if ($lock->token == $lockInfo->token) {
+ $exists = true;
+ break;
+ }
}
if ($exists) {