MDL-12670 - fix warning when groupings not enabled

merged from MOODLE_19_STABLE
This commit is contained in:
poltawski 2007-12-20 16:11:10 +00:00
parent 5dc1e0bebb
commit 5447d8f038

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');