Merge branch 'MDL-78120-401' of https://github.com/lucaboesch/moodle into MOODLE_401_STABLE

This commit is contained in:
Jake Dallimore 2023-05-16 10:45:27 +08:00
commit aa39ebbb99
No known key found for this signature in database

View File

@ -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;
}