summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorRobin Appelman <icewind@owncloud.com>2012-07-21 00:20:04 +0200
committerRobin Appelman <icewind@owncloud.com>2012-07-21 00:20:27 +0200
commit8a19e134df09dd9a3e49736489f28ad0aee79803 (patch)
treeb35b5983a8efff12dfeaea477f71cbfdeb0d12ac
parent48ec78299ec1b8b3cb7878d469a10e982f83934d (diff)
downloadnextcloud-server-8a19e134df09dd9a3e49736489f28ad0aee79803.tar.gz
nextcloud-server-8a19e134df09dd9a3e49736489f28ad0aee79803.zip
fix ununsed variables
-rw-r--r--apps/files_versions/lib/versions.php6
-rw-r--r--lib/connector/sabre/locks.php2
2 files changed, 4 insertions, 4 deletions
diff --git a/apps/files_versions/lib/versions.php b/apps/files_versions/lib/versions.php
index 0ce884c3ea0..f146676757d 100644
--- a/apps/files_versions/lib/versions.php
+++ b/apps/files_versions/lib/versions.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;
}
diff --git a/lib/connector/sabre/locks.php b/lib/connector/sabre/locks.php
index 94382e68a1a..e95dcf02d27 100644
--- a/lib/connector/sabre/locks.php
+++ b/lib/connector/sabre/locks.php
@@ -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;
}