error handling
This commit is contained in:
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");
|
$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(!$page){
|
if(!is_string($page)){
|
||||||
$page = "";
|
$page = "";
|
||||||
}
|
}
|
||||||
http_response_code(403);
|
http_response_code(403);
|
||||||
|
Loading…
Reference in New Issue
Block a user