summaryrefslogtreecommitdiff
path: root/classes/handler
diff options
context:
space:
mode:
authorAndrew Dolgov <[email protected]>2021-02-25 17:10:03 +0300
committerAndrew Dolgov <[email protected]>2021-02-25 17:10:03 +0300
commit34c74400a471b31fea22ea85636f47c76d783710 (patch)
tree460528b4f177a1500b61035ed39644747cb47d66 /classes/handler
parentdcf0135285f1a515454807cdfe1e819f37a23a86 (diff)
enforce some stricter type checking for loggers
Diffstat (limited to 'classes/handler')
-rwxr-xr-xclasses/handler/public.php2
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;