MDL-12670 - fix warning when groupings not enabled

This commit is contained in:
poltawski
2007-12-20 16:10:03 +00:00
parent 847af02833
commit ae74081cc3
+1 -1
View File
@@ -115,7 +115,7 @@ class autogroup_form extends moodleform {
}
// 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');