aboutsummaryrefslogtreecommitdiff
path: root/lib/functions.php
diff options
context:
space:
mode:
Diffstat (limited to 'lib/functions.php')
-rw-r--r--lib/functions.php2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/functions.php b/lib/functions.php
index df63256..6621014 100644
--- a/lib/functions.php
+++ b/lib/functions.php
@@ -1129,7 +1129,7 @@ function studip_default_exception_handler($exception) {
$status = 403;
$template = 'check_object_exception';
} elseif ($exception instanceof LoginException) {
- $_SESSION['redirect_after_login'] ??= Request::url();
+ $_SESSION['redirect_after_login'] = Request::url();
sess()->save();
header('Location: ' . URLHelper::getScriptURL('dispatch.php/login'));
exit;