Permalink
Browse files

Merge branch 'wip-MDL-28197-MOODLE_19_STABLE' of git://github.com/mar…

…inaglancy/moodle into MOODLE_19_STABLE
  • Loading branch information...
2 parents 731e813 + 682e430 commit b2d016f3da2289cacd4cf5a4c87a444cf37c2eda Sam Hemelryk committed Jul 11, 2011
Showing with 2 additions and 2 deletions.
  1. +2 −2 admin/uploaduser.php
View
@@ -558,7 +558,7 @@
continue;
}
// save custom profile fields data
- profile_save_data($user);
+ profile_save_data(addslashes_recursive($user));
// make sure user context exists
get_context_instance(CONTEXT_USER, $user->id);
@@ -665,7 +665,7 @@
$newgroupdata = new object();
$newgroupdata->name = $addgroup;
$newgroupdata->courseid = $ccache[$shortname]->id;
- if ($ccache[$shortname]->groups[$addgroup]->id = groups_create_group($newgroupdata)){
+ if ($ccache[$shortname]->groups[$addgroup]->id = groups_create_group(addslashes_recursive($newgroupdata))){
$ccache[$shortname]->groups[$addgroup]->name = $newgroupdata->name;
} else {
$upt->track('enrolments', get_string('unknowngroup', 'error', $addgroup), 'error');

0 comments on commit b2d016f

Please sign in to comment.