Skip to content

Commit

Permalink
Whoops im Setup vermeiden (#5474)
Browse files Browse the repository at this point in the history
  • Loading branch information
gharlan committed Dec 31, 2022
1 parent 2351318 commit 5e15d02
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 1 deletion.
3 changes: 3 additions & 0 deletions .tools/psalm/baseline.xml
Expand Up @@ -6359,5 +6359,8 @@
<MixedAssignment occurrences="1">
<code>$_SESSION[$sessionKey]['backend_login']</code>
</MixedAssignment>
<RedundantCondition occurrences="1">
<code>rex::getProperty('login')</code>
</RedundantCondition>
</file>
</files>
2 changes: 1 addition & 1 deletion redaxo/src/core/update.php
Expand Up @@ -80,7 +80,7 @@

require __DIR__.'/install.php';

if (rex_version::compare(rex::getVersion(), '5.15.0-dev', '<')) {
if (rex_version::compare(rex::getVersion(), '5.15.0-dev', '<') && rex::getProperty('login')) {
// prevent admin loggout during update
rex_user_session::getInstance()->storeCurrentSession(rex::getProperty('login'));
}

0 comments on commit 5e15d02

Please sign in to comment.