mirror of
https://github.com/moodle/moodle.git
synced 2025-01-19 06:18:28 +01:00
Merge branch 'MDL-42884_master' of https://github.com/markn86/moodle
This commit is contained in:
commit
b6813d8f6a
@ -4247,7 +4247,7 @@ function delete_user(stdClass $user) {
|
||||
\core\session\manager::kill_user_sessions($user->id);
|
||||
|
||||
// Workaround for bulk deletes of users with the same email address.
|
||||
$delname = "$user->email.".time();
|
||||
$delname = clean_param($user->email . "." . time(), PARAM_USERNAME);
|
||||
while ($DB->record_exists('user', array('username' => $delname))) { // No need to use mnethostid here.
|
||||
$delname++;
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user