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

Signed-off-by: Robin Appelman <robin@icewind.nl>
pull/12494/head
Robin Appelman 7 years ago
parent a4d81ba164
commit 5d5cfefd35
No known key found for this signature in database
GPG Key ID: 42B69D8A64526EFB
  1. 2
      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);
}

Loading…
Cancel
Save