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 ); $versions = array_reverse( $versions );
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;
} }

View File

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