summaryrefslogtreecommitdiffstats
path: root/lib
diff options
context:
space:
mode:
authorThomas Müller <thomas.mueller@tmit.eu>2014-08-07 11:33:13 +0200
committerThomas Müller <thomas.mueller@tmit.eu>2014-08-07 11:33:13 +0200
commitd2365afad6c10a2b365b13296065e99bf13d704f (patch)
tree1df0d58fe1ffcdc68a5db2332e50998f6b35c646 /lib
parent2821f7241b1d36db0c74ca1111496f7dbd50080c (diff)
parent9925db335ce7f01d8c781b9b23fad98316bf451d (diff)
downloadnextcloud-server-d2365afad6c10a2b365b13296065e99bf13d704f.tar.gz
nextcloud-server-d2365afad6c10a2b365b13296065e99bf13d704f.zip
Merge pull request #8915 from owncloud/MorrisJobke-travis
Travis support for PRs and master, stable5 and stable6
Diffstat (limited to 'lib')
-rw-r--r--lib/private/appframework/utility/controllermethodreflector.php1
-rw-r--r--lib/private/files/view.php3
2 files changed, 4 insertions, 0 deletions
diff --git a/lib/private/appframework/utility/controllermethodreflector.php b/lib/private/appframework/utility/controllermethodreflector.php
index d5cf2f52eb2..c49dd80091e 100644
--- a/lib/private/appframework/utility/controllermethodreflector.php
+++ b/lib/private/appframework/utility/controllermethodreflector.php
@@ -62,6 +62,7 @@ class ControllerMethodReflector {
} else {
$this->types = array_combine($matches['var'], $matches['type']);
}
+
// get method parameters
foreach ($reflection->getParameters() as $param) {
if($param->isOptional()) {
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;
}