summaryrefslogtreecommitdiffstats
path: root/lib/private/Files/Cache
diff options
context:
space:
mode:
authorRobin Appelman <robin@icewind.nl>2018-11-16 17:26:42 +0100
committerRobin Appelman <robin@icewind.nl>2018-11-16 17:26:42 +0100
commit5d5cfefd35f73d9e9efccce7b824d8fc92b8d343 (patch)
tree7341b62fceb9079052c7dd2b4e5f9aa3fff5ab13 /lib/private/Files/Cache
parenta4d81ba1641db8136b13d2bb7b7c0176c916ec7e (diff)
downloadnextcloud-server-5d5cfefd35f73d9e9efccce7b824d8fc92b8d343.tar.gz
nextcloud-server-5d5cfefd35f73d9e9efccce7b824d8fc92b8d343.zip
return the correct value when trying to get a non existing item from cache by id
Signed-off-by: Robin Appelman <robin@icewind.nl>
Diffstat (limited to 'lib/private/Files/Cache')
-rw-r--r--lib/private/Files/Cache/Cache.php2
1 files changed, 2 insertions, 0 deletions
diff --git a/lib/private/Files/Cache/Cache.php b/lib/private/Files/Cache/Cache.php
index 1cb11c70a40..43e48e51654 100644
--- a/lib/private/Files/Cache/Cache.php
+++ b/lib/private/Files/Cache/Cache.php
@@ -150,6 +150,8 @@ class Cache implements ICache {
$data = $this->partial[$file];
}
return $data;
+ } else if (!$data) {
+ return $data;
} else {
return self::cacheEntryFromData($data, $this->mimetypeLoader);
}