Make View->shouldEmitHooks more robust
This commit is contained in:
parent
8d0e162daf
commit
244d4e1399
|
@ -781,6 +781,9 @@ class View {
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
$defaultRoot = Filesystem::getRoot();
|
$defaultRoot = Filesystem::getRoot();
|
||||||
|
if ($defaultRoot === null) {
|
||||||
|
return false;
|
||||||
|
}
|
||||||
if ($this->fakeRoot === $defaultRoot) {
|
if ($this->fakeRoot === $defaultRoot) {
|
||||||
return true;
|
return true;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue