diff --git a/Routing/Router.php b/Routing/Router.php index 486056f..18f908d 100644 --- a/Routing/Router.php +++ b/Routing/Router.php @@ -16,7 +16,8 @@ switch($requestElements[0]) { case "Static": case "favicon.ico": - break; + default: + return false; case "": require_once __DIR__ . '/../Pages/index.php'; return true; @@ -37,5 +38,3 @@ switch($requestElements[0]) return true; } } - -return false;