]> source.dussan.org Git - nextcloud-server.git/commitdiff
return the correct value when trying to get a non existing item from cache by id
authorRobin Appelman <robin@icewind.nl>
Fri, 16 Nov 2018 16:26:42 +0000 (17:26 +0100)
committerRobin Appelman <robin@icewind.nl>
Fri, 16 Nov 2018 16:26:42 +0000 (17:26 +0100)
Signed-off-by: Robin Appelman <robin@icewind.nl>
lib/private/Files/Cache/Cache.php

index 1cb11c70a4061927ad3ded1a25424faf573c04e3..43e48e51654c903e5f3b93ab0896d055907ea2d2 100644 (file)
@@ -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);
                }