Skip to content

Commit

Permalink
Update Maintenance.php
Browse files Browse the repository at this point in the history
  • Loading branch information
alxndr-w committed Aug 18, 2024
1 parent 487b68a commit 99846cb
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/Maintenance.php
Original file line number Diff line number Diff line change
Expand Up @@ -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

Check warning on line 109 in lib/Maintenance.php

View workflow job for this annotation

GitHub Actions / Qodana for PHP

Undefined function

Undefined function 'rex_session'
return true;
}

Expand Down

0 comments on commit 99846cb

Please sign in to comment.