Skip to content

Commit

Permalink
Fix undefined key error at logout
Browse files Browse the repository at this point in the history
Reported at https://www.simplemachines.org/community/index.php?topic=579635.0

Signed-off-by: Oscar Rydhé <oscar.rydhe@gmail.com>
  • Loading branch information
BrickOzp committed Nov 23, 2021
1 parent 4f3a9d7 commit 2120dba
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion Sources/LogInOut.php
Expand Up @@ -748,7 +748,7 @@ function Logout($internal = false, $redirect = true)
$_SESSION['logout_return'] = $_SESSION['logout_url'];
}
// Setup the return address.
else
elseif (isset($_SESSION['old_url']))
$_SESSION['logout_return'] = $_SESSION['old_url'];

// Don't go any further.
Expand Down

0 comments on commit 2120dba

Please sign in to comment.