This commit is contained in:
Bruno Rybársky 2024-02-03 16:54:50 +01:00
parent 472c74a0c4
commit 50d9fd2e39

@ -97,13 +97,14 @@ function getPage($page_name = null): array|false|string
$page_tmp = file_get_contents($routerConfig["template_dir"] . "403.html"); $page_tmp = file_get_contents($routerConfig["template_dir"] . "403.html");
$pageMetadata = parsePageTag($page_tmp); $pageMetadata = parsePageTag($page_tmp);
$page = $pageMetadata["output"]; $page = $pageMetadata["output"];
if(!is_string($page)){
$page = "";
}
http_response_code(403); http_response_code(403);
} }
} }
if(!is_string($page)){
$page = "";
}
if(!empty($pageMetadata["parameters"]["page_title"])){ if(!empty($pageMetadata["parameters"]["page_title"])){
$page_title = $pageMetadata["parameters"]["page_title"]; $page_title = $pageMetadata["parameters"]["page_title"];
} }