error handling

This commit is contained in:
Bruno Rybársky 2024-02-03 16:48:36 +01:00
parent 0249aad0a3
commit 04117e3aaa

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