mirror of
https://github.com/moodle/moodle.git
synced 2025-03-04 16:10:59 +01:00
Merge branch 'w29_MDL-40558_m26_guestdelete' of https://github.com/skodak/moodle
This commit is contained in:
commit
8eb3e1f94f
@ -99,6 +99,9 @@ function cron_run() {
|
||||
AND (lastname = '' OR firstname = '' OR email = '')",
|
||||
array($cuttime));
|
||||
foreach ($rs as $user) {
|
||||
if (isguestuser($user) or is_siteadmin($user)) {
|
||||
continue;
|
||||
}
|
||||
delete_user($user);
|
||||
mtrace(" Deleted not fully setup user $user->username ($user->id)");
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user