$locks = $this->getLocks($uri, false); | $locks = $this->getLocks($uri, false); | ||||
$exists = false; | $exists = false; | ||||
foreach($locks as $lock) { | foreach($locks as $lock) { | ||||
if ($lock->token == $lockInfo->token) $exists = true; | |||||
if ($lock->token == $lockInfo->token) { | |||||
$exists = true; | |||||
break; | |||||
} | |||||
} | } | ||||
if ($exists) { | if ($exists) { |