return the correct value when trying to get a non existing item from cache by id

Signed-off-by: Robin Appelman <robin@icewind.nl>
This commit is contained in:
Robin Appelman 2018-11-16 17:26:42 +01:00
parent a4d81ba164
commit 5d5cfefd35
No known key found for this signature in database
GPG Key ID: 42B69D8A64526EFB
1 changed files with 2 additions and 0 deletions

View 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);
}