Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

MDL-33770 webservices: Fixed error with core_group_create_groups when…

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