diff --git a/VERSION b/VERSION index 8789854..9631612 100644 --- a/VERSION +++ b/VERSION @@ -1 +1 @@ -0.2403.282010 +0.2403.282016 diff --git a/src/Http/Routing/HttpRouter.php b/src/Http/Routing/HttpRouter.php index 40ccb69..c6429f5 100644 --- a/src/Http/Routing/HttpRouter.php +++ b/src/Http/Routing/HttpRouter.php @@ -52,7 +52,7 @@ class HttpRouter implements IRouter { $prepared = self::preparePath($path, false); if($prepared === false) { - if(is_array($this->staticRoutes[$path])) + if(array_key_exists($path, $this->staticRoutes)) $this->staticRoutes[$path][$method] = $handler; else $this->staticRoutes[$path] = [$method => $handler];