Skip to content

Commit

Permalink
MDL-12670 - fix warning when groupings not enabled
Browse files Browse the repository at this point in the history
merged from MOODLE_19_STABLE
  • Loading branch information
poltawski committed Dec 20, 2007
1 parent 5dc1e0b commit 5447d8f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion group/autogroup_form.php
Original file line number Diff line number Diff line change
Expand Up @@ -115,7 +115,7 @@ function validation($data, $files) {
}

// check grouping name duplicates
if ($data['grouping'] == '-1') {
if ( isset($data['grouping']) && $data['grouping'] == '-1') {
$name = trim(stripslashes($data['groupingname']));
if (empty($name)) {
$errors['groupingname'] = get_string('required');
Expand Down

0 comments on commit 5447d8f

Please sign in to comment.