From 15ad67fdba2f1e0999f4b6fcd560f20a646725af Mon Sep 17 00:00:00 2001 From: bruno Date: Thu, 1 Feb 2024 10:03:07 +0100 Subject: [PATCH] is it empty? --- lib/page.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/page.php b/lib/page.php index 0dd4e06..133df7d 100644 --- a/lib/page.php +++ b/lib/page.php @@ -99,7 +99,7 @@ function getPage($page_name = null): array|false|string $curprivlvl = $_SESSION["privilegelevel"]; $orig = $pageMetadata["parameters"]["secret"]; - print_r($orig); + print_r(empty($pageMetadata["parameters"]["secret"])); echo "Secrecy: $is_secret_page($orig), you need to have $page_required_permission, you have $curprivlvl"; if($page_required_permission > $_SESSION["privilegelevel"]){