Skip to content

Commit c1e0088

Browse files
ChristophWurstbackportbot[bot]
authored andcommitted
fix(files): Don't attempt to format a partial cache entry
Signed-off-by: Christoph Wurst <[email protected]>
1 parent a3b9cc8 commit c1e0088

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

lib/private/Files/Cache/Wrapper/CacheWrapper.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -83,7 +83,7 @@ protected function formatCacheEntry($entry) {
8383
*/
8484
public function get($file) {
8585
$result = $this->getCache()->get($file);
86-
if ($result) {
86+
if ($result instanceof ICacheEntry) {
8787
$result = $this->formatCacheEntry($result);
8888
}
8989
return $result;

0 commit comments

Comments
 (0)