Make View->shouldEmitHooks more robust

This commit is contained in:
Robin Appelman 2014-06-06 10:50:58 +02:00 committed by Morris Jobke
parent 8d0e162daf
commit 244d4e1399
1 changed files with 3 additions and 0 deletions

View File

@ -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;
} }