diff options
author | Robin Appelman <robin@icewind.nl> | 2016-12-13 12:50:17 +0100 |
---|---|---|
committer | Robin Appelman <robin@icewind.nl> | 2016-12-13 12:50:17 +0100 |
commit | 86473306f350cc426ce01009f6f6e2b4a57df38b (patch) | |
tree | 0cb256744957eb1535757b927361e34b691f3955 /lib | |
parent | bbe24d29cac0fcee2573e9eea5ec17b565fd0817 (diff) | |
download | nextcloud-server-86473306f350cc426ce01009f6f6e2b4a57df38b.tar.gz nextcloud-server-86473306f350cc426ce01009f6f6e2b4a57df38b.zip |
fix cacheentry return wrong storage id
Signed-off-by: Robin Appelman <robin@icewind.nl>
Diffstat (limited to 'lib')
-rw-r--r-- | lib/private/Files/Cache/Cache.php | 1 | ||||
-rw-r--r-- | lib/private/Files/Cache/CacheEntry.php | 2 |
2 files changed, 2 insertions, 1 deletions
diff --git a/lib/private/Files/Cache/Cache.php b/lib/private/Files/Cache/Cache.php index 3a3f51488e6..859d79f88d4 100644 --- a/lib/private/Files/Cache/Cache.php +++ b/lib/private/Files/Cache/Cache.php @@ -163,6 +163,7 @@ class Cache implements ICache { $data['storage_mtime'] = (int)$data['storage_mtime']; $data['encryptedVersion'] = (int)$data['encrypted']; $data['encrypted'] = (bool)$data['encrypted']; + $data['storage_id'] = $data['storage']; $data['storage'] = $storageId; $data['mimetype'] = $mimetypeLoader->getMimetypeById($data['mimetype']); $data['mimepart'] = $mimetypeLoader->getMimetypeById($data['mimepart']); diff --git a/lib/private/Files/Cache/CacheEntry.php b/lib/private/Files/Cache/CacheEntry.php index 4a2579a88f8..784bd3a6f98 100644 --- a/lib/private/Files/Cache/CacheEntry.php +++ b/lib/private/Files/Cache/CacheEntry.php @@ -62,7 +62,7 @@ class CacheEntry implements ICacheEntry, \ArrayAccess { } public function getStorageId() { - return $this->data['storage']; + return $this->data['storage_id']; } |