Skip to content
Snippets Groups Projects
Commit 8a19e134 authored by Robin Appelman's avatar Robin Appelman
Browse files

fix ununsed variables

parent 48ec7829
No related branches found
No related tags found
No related merge requests found
......@@ -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;
}
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment