X-Git-Url: https://git.mxchange.org/?a=blobdiff_plain;f=src%2FApp%2FRouter.php;h=6e390a84d9b145f4fcf76a86b1b30ff22001dc9c;hb=f264923cad9b867771c793cc10af36689c1c657e;hp=c21dfd44d9bbca290665a76c41da9c213a8f0b97;hpb=6dbbd081795fa1c8fe57db2248ac162efeeada88;p=friendica.git diff --git a/src/App/Router.php b/src/App/Router.php index c21dfd44d9..6e390a84d9 100644 --- a/src/App/Router.php +++ b/src/App/Router.php @@ -264,10 +264,8 @@ class Router // Check if the HTTP method is OPTIONS and return the special Options Module with the possible HTTP methods if ($this->args->getMethod() === static::OPTIONS) { - $routeOptions = $dispatcher->getOptions($cmd); - $moduleClass = Options::class; - $this->parameters = ['allowedMethods' => $routeOptions]; + $this->parameters = ['allowedMethods' => $dispatcher->getOptions($cmd)]; } else { $routeInfo = $dispatcher->dispatch($this->args->getMethod(), $cmd); if ($routeInfo[0] === Dispatcher::FOUND) {