From 2e2fe4b85f48518e42351eacadb71b299941efdb Mon Sep 17 00:00:00 2001 From: Synox Date: Fri, 23 Feb 2018 21:23:35 +0100 Subject: [PATCH] cleanup --- src/router.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/router.php b/src/router.php index b907852..9ee86d5 100644 --- a/src/router.php +++ b/src/router.php @@ -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); }