summaryrefslogtreecommitdiffstats
path: root/apps
diff options
context:
space:
mode:
authorMichael Gapczynski <mtgap@owncloud.com>2013-02-23 16:09:56 -0500
committerMichael Gapczynski <mtgap@owncloud.com>2013-02-23 16:09:56 -0500
commit36827d15498f443819b3aceb503d6cc1b071e041 (patch)
tree6e6774b68781662efc8d64943fcaeca70c7be2d6 /apps
parent00e28cf15641cccffd39ce2b41ddb0a2dca5cd48 (diff)
downloadnextcloud-server-36827d15498f443819b3aceb503d6cc1b071e041.tar.gz
nextcloud-server-36827d15498f443819b3aceb503d6cc1b071e041.zip
Fix variable
Diffstat (limited to 'apps')
-rw-r--r--apps/files_sharing/lib/cache.php2
1 files changed, 1 insertions, 1 deletions
diff --git a/apps/files_sharing/lib/cache.php b/apps/files_sharing/lib/cache.php
index 910c268f011..5309ec78969 100644
--- a/apps/files_sharing/lib/cache.php
+++ b/apps/files_sharing/lib/cache.php
@@ -126,7 +126,7 @@ class Shared_Cache extends Cache {
*/
public function put($file, array $data) {
if ($file == '' && isset($data['etag'])) {
- \OCP\Config::setUserValue(\OCP\User::getUser(), 'files_sharing', 'etag', $etag);
+ \OCP\Config::setUserValue(\OCP\User::getUser(), 'files_sharing', 'etag', $data['etag']);
} else if ($cache = $this->getSourceCache($file)) {
return $cache->put($this->files[$file], $data);
}