fix ununsed variables
This commit is contained in:
parent
48ec78299e
commit
8a19e134df
|
@ -231,9 +231,9 @@ class Storage {
|
||||||
foreach( $versions as $key => $value ) {
|
foreach( $versions as $key => $value ) {
|
||||||
|
|
||||||
// flag the first matched file in array (which will have latest modification date) as current version
|
// 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;
|
break;
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
|
@ -108,7 +108,7 @@ class OC_Connector_Sabre_Locks extends Sabre_DAV_Locks_Backend_Abstract {
|
||||||
|
|
||||||
$locks = $this->getLocks($uri,false);
|
$locks = $this->getLocks($uri,false);
|
||||||
$exists = false;
|
$exists = false;
|
||||||
foreach($locks as $k=>$lock) {
|
foreach($locks as $lock) {
|
||||||
if ($lock->token == $lockInfo->token) $exists = true;
|
if ($lock->token == $lockInfo->token) $exists = true;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue