mirror of
https://github.com/moodle/moodle.git
synced 2025-04-14 04:52:36 +02:00
MDL-78120 login: handle empty wantsurl on login with alternateloginurl.
This commit is contained in:
parent
017a3274fe
commit
997990f94f
@ -314,7 +314,7 @@ if (!empty($CFG->alternateloginurl)) {
|
||||
|
||||
$loginurlstr = $loginurl->out(false);
|
||||
|
||||
if (strpos($SESSION->wantsurl, $loginurlstr) === 0) {
|
||||
if (strpos($SESSION->wantsurl ?? '', $loginurlstr) === 0) {
|
||||
// We do not want to return to alternate url.
|
||||
$SESSION->wantsurl = null;
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user