forked from Adleraci/adlerka.top
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");
|
||||
$pageMetadata = parsePageTag($page_tmp);
|
||||
$page = $pageMetadata["output"];
|
||||
if(!$page){
|
||||
if(!is_string($page)){
|
||||
$page = "";
|
||||
}
|
||||
http_response_code(403);
|
||||
|
Loading…
Reference in New Issue
Block a user