MDL-32628 fix user_picture performance

This commit is contained in:
Petr Skoda
2012-04-27 13:56:08 +02:00
parent aa753ac24f
commit faa328c385
2 changed files with 39 additions and 24 deletions
+1
View File
@@ -3895,6 +3895,7 @@ function delete_user($user) {
$updateuser->username = $delname; // Remember it just in case
$updateuser->email = md5($user->username);// Store hash of username, useful importing/restoring users
$updateuser->idnumber = ''; // Clear this field to free it up
$updateuser->picture = 0;
$updateuser->timemodified = time();
$DB->update_record('user', $updateuser);