summaryrefslogtreecommitdiffstats
path: root/lib/route.php
diff options
context:
space:
mode:
authorBart Visscher <bartv@thisnet.nl>2012-08-11 00:04:43 +0200
committerBart Visscher <bartv@thisnet.nl>2012-08-11 00:04:43 +0200
commit87d1cdb94567d5514e0a2988f69935d932b58ff6 (patch)
tree8dd51c1d5baedcfdc897d47aca678b9b0a1c69ae /lib/route.php
parentf63b9b44d8ac62a136d4cd6844e72af7a8044703 (diff)
downloadnextcloud-server-87d1cdb94567d5514e0a2988f69935d932b58ff6.tar.gz
nextcloud-server-87d1cdb94567d5514e0a2988f69935d932b58ff6.zip
Fix for running doing routing in lib/ocs.php
Diffstat (limited to 'lib/route.php')
-rw-r--r--lib/route.php4
1 files changed, 3 insertions, 1 deletions
diff --git a/lib/route.php b/lib/route.php
index df3a18e844f..772446e5615 100644
--- a/lib/route.php
+++ b/lib/route.php
@@ -50,7 +50,9 @@ class OC_Route extends Route {
if (isset($requirements['_method'])) {
$method = $requirements['_method'];
}
- $this->method($method);
+ if ($method) {
+ $this->method($method);
+ }
return $this;
}