diff --git a/lib/page.php b/lib/page.php index a680335..497f4d8 100644 --- a/lib/page.php +++ b/lib/page.php @@ -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);