From: Thomas Mueller Date: Fri, 14 Jun 2013 11:54:41 +0000 (+0200) Subject: coding style X-Git-Tag: v6.0.0alpha2~628^2~2 X-Git-Url: https://source.dussan.org/?a=commitdiff_plain;h=5c7d7549ea8803596307882f2ee9214808c82451;p=nextcloud-server.git coding style --- 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) {