Permalink
Browse files

MDL-29102 fix notice when auto-creating groups in existing grouping

  • Loading branch information...
1 parent c1dc3a5 commit 4cb906541be2fba8e9f5adb80022c493a2d0ef43 @skodak skodak committed Jan 15, 2012
Showing with 1 addition and 2 deletions.
  1. +1 −2 group/autogroup.php
View
@@ -172,11 +172,10 @@
// prepare grouping
if (!empty($data->grouping)) {
- $groupingname = trim($data->groupingname);
if ($data->grouping < 0) {
$grouping = new stdClass();
$grouping->courseid = $COURSE->id;
- $grouping->name = $groupingname;
+ $grouping->name = trim($data->groupingname);
$grouping->id = groups_create_grouping($grouping);
$createdgrouping = $grouping->id;
} else {

0 comments on commit 4cb9065

Please sign in to comment.