This commit is contained in:
Bruno Rybársky 2024-02-15 10:20:29 +01:00
parent 23b96a3942
commit c4265543d4

@ -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){