Permalink
Browse files

MDL-33770 webservices: Fixed error with core_group_create_groups when…

… no enrolment key provided
  • Loading branch information...
1 parent c57fa60 commit 1e9130ae6ed9d37513541ad2f7757c47e4582a00 Sam Hemelryk committed Jul 4, 2012
Showing with 3 additions and 0 deletions.
  1. +3 −0 group/externallib.php
View
@@ -105,6 +105,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;
}

0 comments on commit 1e9130a

Please sign in to comment.