Skip to content

Commit

Permalink
MDL-32628 fix all deleted users to not have picture flag
Browse files Browse the repository at this point in the history
  • Loading branch information
skodak committed Apr 27, 2012
1 parent faa328c commit fa53068
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions lib/db/upgrade.php
Original file line number Diff line number Diff line change
Expand Up @@ -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;
}

0 comments on commit fa53068

Please sign in to comment.