mirror of
https://github.com/moodle/moodle.git
synced 2025-01-19 06:18:28 +01:00
MDL-32628 fix all deleted users to not have picture flag
This commit is contained in:
parent
faa328c385
commit
fa5306878b
@ -422,5 +422,11 @@ function xmldb_main_upgrade($oldversion) {
|
||||
upgrade_main_savepoint(true, 2012042300.02);
|
||||
}
|
||||
|
||||
if ($oldversion < 2012042700.01) {
|
||||
// Make sure deleted users do not have picture flag.
|
||||
$DB->set_field('user', 'picture', 0, array('deleted'=>1, 'picture'=>1));
|
||||
upgrade_main_savepoint(true, 2012042700.01);
|
||||
}
|
||||
|
||||
return true;
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user