Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

MDL-33770 webservices: Fixed error with core_group_create_groups when…

… no enrolment key provided
  • Loading branch information...
commit 48d0a91018fdc5d6f6d5c3ececc7acc65579ca11 1 parent adb1b0a
@samhemelryk samhemelryk authored
Showing with 3 additions and 0 deletions.
  1. +3 −0  group/externallib.php
View
3  group/externallib.php
@@ -89,6 +89,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;
}
Please sign in to comment.
Something went wrong with that request. Please try again.