fix ununsed variables

This commit is contained in:
Robin Appelman 2012-07-21 00:20:04 +02:00
parent 48ec78299e
commit 8a19e134df
2 changed files with 4 additions and 4 deletions

View file

@ -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;
}

View file

@ -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;
}