]> source.dussan.org Git - nextcloud-server.git/commitdiff
coding style
authorThomas Mueller <thomas.mueller@tmit.eu>
Fri, 14 Jun 2013 11:54:41 +0000 (13:54 +0200)
committerThomas Mueller <thomas.mueller@tmit.eu>
Fri, 14 Jun 2013 11:54:41 +0000 (13:54 +0200)
lib/connector/sabre/locks.php

index 1364aae0103598ab3a065a0660fc699a3c4d3503..cbc495dec19b8ce6699e6507dac0e1b83d1c5982 100644 (file)
@@ -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) {