Correctly check for new default root
Signed-off-by: Joas Schilling <coding@schilljs.com>
This commit is contained in:
parent
7f3802a41b
commit
98548b1c44
|
@ -72,7 +72,7 @@ class Cache extends CacheJail {
|
|||
}
|
||||
|
||||
protected function getRoot() {
|
||||
if (is_null($this->root)) {
|
||||
if ($this->root === '') {
|
||||
$absoluteRoot = $this->sourceRootInfo->getPath();
|
||||
|
||||
// the sourceRootInfo path is the absolute path of the folder in the "real" storage
|
||||
|
@ -138,7 +138,7 @@ class Cache extends CacheJail {
|
|||
|
||||
protected function formatCacheEntry($entry, $path = null) {
|
||||
if (is_null($path)) {
|
||||
$path = isset($entry['path']) ? $entry['path'] : '';
|
||||
$path = $entry['path'] ?? '';
|
||||
$entry['path'] = $this->getJailedPath($path);
|
||||
} else {
|
||||
$entry['path'] = $path;
|
||||
|
|
Loading…
Reference in New Issue