diff options
author | Robin Appelman <icewind@owncloud.com> | 2014-06-06 10:50:58 +0200 |
---|---|---|
committer | Morris Jobke <hey@morrisjobke.de> | 2014-08-05 16:53:28 +0200 |
commit | 244d4e1399122a6e70120a2ceb7ba25c001b51ba (patch) | |
tree | c62ef491c76ce2f3393531fd72eac036da3c6166 /lib | |
parent | 8d0e162dafb9ab19e726d2d4fa9c5cdb621f806d (diff) | |
download | nextcloud-server-244d4e1399122a6e70120a2ceb7ba25c001b51ba.tar.gz nextcloud-server-244d4e1399122a6e70120a2ceb7ba25c001b51ba.zip |
Make View->shouldEmitHooks more robust
Diffstat (limited to 'lib')
-rw-r--r-- | lib/private/files/view.php | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/lib/private/files/view.php b/lib/private/files/view.php index e08cb20f73d..85af4a9abef 100644 --- a/lib/private/files/view.php +++ b/lib/private/files/view.php @@ -781,6 +781,9 @@ class View { return false; } $defaultRoot = Filesystem::getRoot(); + if ($defaultRoot === null) { + return false; + } if ($this->fakeRoot === $defaultRoot) { return true; } |