diff options
author | Bart Visscher <bartv@thisnet.nl> | 2012-08-11 00:04:43 +0200 |
---|---|---|
committer | Bart Visscher <bartv@thisnet.nl> | 2012-08-11 00:04:43 +0200 |
commit | 87d1cdb94567d5514e0a2988f69935d932b58ff6 (patch) | |
tree | 8dd51c1d5baedcfdc897d47aca678b9b0a1c69ae /lib/route.php | |
parent | f63b9b44d8ac62a136d4cd6844e72af7a8044703 (diff) | |
download | nextcloud-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.php | 4 |
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; } |