summaryrefslogtreecommitdiffstats
path: root/apps
diff options
context:
space:
mode:
authorThomas Müller <thomas.mueller@tmit.eu>2013-10-25 12:39:21 +0200
committerThomas Müller <thomas.mueller@tmit.eu>2013-10-25 12:39:21 +0200
commitf91a4c89cad156f5724449a2c7388abfcf279dc8 (patch)
tree56ad790ebc0e78c93ef12c176fff239b5d0cb6cd /apps
parentc5b8963b18f1dabf248d025789c04fe82d66e3f2 (diff)
downloadnextcloud-server-f91a4c89cad156f5724449a2c7388abfcf279dc8.tar.gz
nextcloud-server-f91a4c89cad156f5724449a2c7388abfcf279dc8.zip
adding storage_mtime handling to SharedCache
Diffstat (limited to 'apps')
-rw-r--r--apps/files_sharing/lib/cache.php4
1 files changed, 4 insertions, 0 deletions
diff --git a/apps/files_sharing/lib/cache.php b/apps/files_sharing/lib/cache.php
index 123268e240a..3a8e703740f 100644
--- a/apps/files_sharing/lib/cache.php
+++ b/apps/files_sharing/lib/cache.php
@@ -99,9 +99,13 @@ class Shared_Cache extends Cache {
$data['fileid'] = (int)$data['fileid'];
$data['size'] = (int)$data['size'];
$data['mtime'] = (int)$data['mtime'];
+ $data['storage_mtime'] = (int)$data['storage_mtime'];
$data['encrypted'] = (bool)$data['encrypted'];
$data['mimetype'] = $this->getMimetype($data['mimetype']);
$data['mimepart'] = $this->getMimetype($data['mimepart']);
+ if ($data['storage_mtime'] == 0) {
+ $data['storage_mtime'] = $data['mtime'];
+ }
return $data;
}
return false;