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:
parent
a4d81ba164
commit
5d5cfefd35
|
@ -150,6 +150,8 @@ class Cache implements ICache {
|
||||||
$data = $this->partial[$file];
|
$data = $this->partial[$file];
|
||||||
}
|
}
|
||||||
return $data;
|
return $data;
|
||||||
|
} else if (!$data) {
|
||||||
|
return $data;
|
||||||
} else {
|
} else {
|
||||||
return self::cacheEntryFromData($data, $this->mimetypeLoader);
|
return self::cacheEntryFromData($data, $this->mimetypeLoader);
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue