From f91a4c89cad156f5724449a2c7388abfcf279dc8 Mon Sep 17 00:00:00 2001 From: Thomas Müller Date: Fri, 25 Oct 2013 12:39:21 +0200 Subject: adding storage_mtime handling to SharedCache --- apps/files_sharing/lib/cache.php | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'apps') 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; -- cgit v1.2.3