]> source.dussan.org Git - nextcloud-server.git/commitdiff
adding storage_mtime handling to SharedCache
authorThomas Müller <thomas.mueller@tmit.eu>
Fri, 25 Oct 2013 10:39:21 +0000 (12:39 +0200)
committerThomas Müller <thomas.mueller@tmit.eu>
Fri, 25 Oct 2013 10:39:21 +0000 (12:39 +0200)
apps/files_sharing/lib/cache.php

index 123268e240afee61b59c179df4166e631a9d6eaa..3a8e703740ff7d60ad1808db97e4aedab848c272 100644 (file)
@@ -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;