mirror of
https://github.com/nextcloud/server.git
synced 2026-05-28 04:32:30 -04:00
Make View->shouldEmitHooks more robust
This commit is contained in:
parent
8d0e162daf
commit
244d4e1399
1 changed files with 3 additions and 0 deletions
|
|
@ -781,6 +781,9 @@ class View {
|
|||
return false;
|
||||
}
|
||||
$defaultRoot = Filesystem::getRoot();
|
||||
if ($defaultRoot === null) {
|
||||
return false;
|
||||
}
|
||||
if ($this->fakeRoot === $defaultRoot) {
|
||||
return true;
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in a new issue