mirror of
https://github.com/moodle/moodle.git
synced 2025-01-18 14:03:52 +01:00
MDL-12670 - fix warning when groupings not enabled
merged from MOODLE_19_STABLE
This commit is contained in:
parent
5dc1e0bebb
commit
5447d8f038
@ -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');
|
||||
|
Loading…
x
Reference in New Issue
Block a user