fix ununsed variables
This commit is contained in:
parent
48ec78299e
commit
8a19e134df
2 changed files with 4 additions and 4 deletions
|
@ -227,13 +227,13 @@ class Storage {
|
|||
}
|
||||
|
||||
$versions = array_reverse( $versions );
|
||||
|
||||
|
||||
foreach( $versions as $key => $value ) {
|
||||
|
||||
// flag the first matched file in array (which will have latest modification date) as current version
|
||||
if ( $versions[$key]['fileMatch'] ) {
|
||||
if ( $value['fileMatch'] ) {
|
||||
|
||||
$versions[$key]['cur'] = 1;
|
||||
$value['cur'] = 1;
|
||||
break;
|
||||
|
||||
}
|
||||
|
|
|
@ -108,7 +108,7 @@ class OC_Connector_Sabre_Locks extends Sabre_DAV_Locks_Backend_Abstract {
|
|||
|
||||
$locks = $this->getLocks($uri,false);
|
||||
$exists = false;
|
||||
foreach($locks as $k=>$lock) {
|
||||
foreach($locks as $lock) {
|
||||
if ($lock->token == $lockInfo->token) $exists = true;
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue