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; }