1
0
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:
Luca Bösch 2023-05-04 11:44:10 +02:00
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;
}