This commit is contained in:
Synox 2018-02-23 21:23:35 +01:00
parent ee18dd0581
commit 2e2fe4b85f

View File

@ -22,7 +22,7 @@ class Router {
static function init() {
global $config;
return new Router($_SERVER['REQUEST_METHOD'], isset($_GET['action']) ? $_GET['action'] : null, $_GET, $_POST, $_SERVER['QUERY_STRING'], $config);
return new Router($_SERVER['REQUEST_METHOD'], $_GET['action'] ?? array(), $_GET, $_POST, $_SERVER['QUERY_STRING'], $config);
}