fix ununsed variables

remotes/origin/stable5
Robin Appelman 13 years ago
parent 48ec78299e
commit 8a19e134df
  1. 6
      apps/files_versions/lib/versions.php
  2. 2
      lib/connector/sabre/locks.php

@ -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…
Cancel
Save