From c4265543d40a53ebcf16f12b8e3b41fecaf59e51 Mon Sep 17 00:00:00 2001 From: bruno Date: Thu, 15 Feb 2024 10:20:29 +0100 Subject: [PATCH] Fix --- lib/router.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/router.php b/lib/router.php index 5814c00..e42bd7e 100644 --- a/lib/router.php +++ b/lib/router.php @@ -16,7 +16,7 @@ function initRouter(): array $routerRequest["site_name"] = $routerConfig["default_site"]; $routerRequest["page_name"] = $routerConfig["default_page"]; - if(count($request_uri > 2)){ + if(count($request_uri) > 2){ $routerRequest["page_name"] = basename($request_uri[2]); } if(count($request_uri) > 1){