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

This commit is contained in:
Paul Holden 2023-02-01 14:16:15 +00:00
commit 858b26feb2

View File

@ -165,6 +165,8 @@ if ($returnto === 'profile') {
} else {
$returnurl = new moodle_url('/user/profile.php', array('id' => $user->id));
}
} else if ($user->id === -1) {
$returnurl = new moodle_url("/admin/user.php");
} else {
$returnurl = new moodle_url('/user/preferences.php', array('userid' => $user->id));
}