MDL-12598 use user context instead of personal; merged from MOODLE_19_STABLE

This commit is contained in:
skodak
2007-12-19 17:06:47 +00:00
parent 7588679f7a
commit a5feb17622
+1 -1
View File
@@ -544,7 +544,7 @@ if ($formdata = $mform->is_cancelled()) {
profile_save_data($user);
// make sure user context exists
get_context_instance(CONTEXT_PERSONAL, $user->id);
get_context_instance(CONTEXT_USER, $user->id);
if ($bulk == 1 or $bulk == 3) {
if (!in_array($user->id, $SESSION->bulk_users)) {