summaryrefslogtreecommitdiffstats
path: root/lib/route.php
diff options
context:
space:
mode:
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;
}