From 5447d8f038373d2fe96be60a8f1898a1935531cf Mon Sep 17 00:00:00 2001 From: poltawski Date: Thu, 20 Dec 2007 16:11:10 +0000 Subject: [PATCH] MDL-12670 - fix warning when groupings not enabled merged from MOODLE_19_STABLE --- group/autogroup_form.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/group/autogroup_form.php b/group/autogroup_form.php index 96b584f31b0..a97a176fa13 100644 --- a/group/autogroup_form.php +++ b/group/autogroup_form.php @@ -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');