From 99846cb4baaa425f3380163d5f9f8671e8869167 Mon Sep 17 00:00:00 2001 From: Alexander Walther Date: Mon, 19 Aug 2024 00:16:50 +0200 Subject: [PATCH] Update Maintenance.php --- lib/Maintenance.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/Maintenance.php b/lib/Maintenance.php index 3405531..9e4f588 100644 --- a/lib/Maintenance.php +++ b/lib/Maintenance.php @@ -106,7 +106,7 @@ public static function isSecretAllowed(): bool $addon = rex_addon::get('maintenance'); // Bereits mit richtigem Secret eingeloggt - if (rex_session('maintenance_secret', 'string', '') === strval($addon->getConfig('maintenance_secret'))) { // @phpstan-ignore-line + if (rex_session('maintenance_secret', 'string', '') !== '' && rex_session('maintenance_secret', 'string', '') === strval($addon->getConfig('maintenance_secret'))) { // @phpstan-ignore-line return true; }