MDL-12670 - fix warning when groupings not enabled
This commit is contained in:
@@ -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');
|
||||
|
||||
Reference in New Issue
Block a user