Skip to content

Commit

Permalink
MDL-33770 webservices: Fixed error with core_group_create_groups when…
Browse files Browse the repository at this point in the history
… no enrolment key provided
  • Loading branch information
Sam Hemelryk committed Jul 4, 2012
1 parent 16ce52b commit db94818
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions group/externallib.php
Expand Up @@ -92,6 +92,9 @@ public static function create_groups($groups) {

// finally create the group
$group->id = groups_create_group($group, false);
if (!isset($group->enrolmentkey)) {
$group->enrolmentkey = '';
}
$groups[] = (array)$group;
}

Expand Down

0 comments on commit db94818

Please sign in to comment.