aboutsummaryrefslogtreecommitdiffstats
path: root/lib
diff options
context:
space:
mode:
authorRobin Appelman <icewind@owncloud.com>2014-06-06 10:50:58 +0200
committerMorris Jobke <hey@morrisjobke.de>2014-08-05 16:53:28 +0200
commit244d4e1399122a6e70120a2ceb7ba25c001b51ba (patch)
treec62ef491c76ce2f3393531fd72eac036da3c6166 /lib
parent8d0e162dafb9ab19e726d2d4fa9c5cdb621f806d (diff)
downloadnextcloud-server-244d4e1399122a6e70120a2ceb7ba25c001b51ba.tar.gz
nextcloud-server-244d4e1399122a6e70120a2ceb7ba25c001b51ba.zip
Make View->shouldEmitHooks more robust
Diffstat (limited to 'lib')
-rw-r--r--lib/private/files/view.php3
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;
}