aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorBjoern Schiessle <schiessle@owncloud.com>2014-04-11 11:54:14 +0200
committerBjoern Schiessle <schiessle@owncloud.com>2014-04-23 12:54:25 +0200
commitc9bd2f7a6c1e72a2ed6d7aa5f180e2c0757ac24c (patch)
treeb908d58202d5225579fcfde6e0294c51c295d75b
parentdfb69e9418704d8553193676f3a2ae85697c0fa9 (diff)
downloadnextcloud-server-c9bd2f7a6c1e72a2ed6d7aa5f180e2c0757ac24c.tar.gz
nextcloud-server-c9bd2f7a6c1e72a2ed6d7aa5f180e2c0757ac24c.zip
also fetch the etag from file cache
-rw-r--r--apps/files_sharing/lib/cache.php3
1 files changed, 2 insertions, 1 deletions
diff --git a/apps/files_sharing/lib/cache.php b/apps/files_sharing/lib/cache.php
index 11f180bf7e6..bce22a74baf 100644
--- a/apps/files_sharing/lib/cache.php
+++ b/apps/files_sharing/lib/cache.php
@@ -102,7 +102,7 @@ class Shared_Cache extends Cache {
}
$query = \OC_DB::prepare(
'SELECT `fileid`, `storage`, `path`, `parent`, `name`, `mimetype`, `mimepart`,'
- . ' `size`, `mtime`, `encrypted`, `unencrypted_size`, `storage_mtime`'
+ . ' `size`, `mtime`, `encrypted`, `unencrypted_size`, `storage_mtime`, `etag`'
. ' FROM `*PREFIX*filecache` WHERE `fileid` = ?');
$result = $query->execute(array($file));
$data = $result->fetchRow();
@@ -212,6 +212,7 @@ class Shared_Cache extends Cache {
* @param string $file
*/
public function remove($file) {
+ $file = ($file === false) ? '' : $file;
if ($cache = $this->getSourceCache($file)) {
$cache->remove($this->files[$file]);
}