diff options
author | Andrew Dolgov <[email protected]> | 2021-02-25 17:10:03 +0300 |
---|---|---|
committer | Andrew Dolgov <[email protected]> | 2021-02-25 17:10:03 +0300 |
commit | 34c74400a471b31fea22ea85636f47c76d783710 (patch) | |
tree | 460528b4f177a1500b61035ed39644747cb47d66 /classes/handler | |
parent | dcf0135285f1a515454807cdfe1e819f37a23a86 (diff) |
enforce some stricter type checking for loggers
Diffstat (limited to 'classes/handler')
-rwxr-xr-x | classes/handler/public.php | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/classes/handler/public.php b/classes/handler/public.php index abfe07b8f..e4572382e 100755 --- a/classes/handler/public.php +++ b/classes/handler/public.php @@ -614,7 +614,7 @@ class Handler_Public extends Handler { function dbupdate() { startup_gettext(); - if (!Config::get(Config::SINGLE_USER_MODE) && $_SESSION["access_level"] < 10) { + if (!Config::get(Config::SINGLE_USER_MODE) && ($_SESSION["access_level"] ?? 0) < 10) { $_SESSION["login_error_msg"] = __("Your access level is insufficient to run this script."); $this->_render_login_form(); exit; |