mirror of
https://github.com/moodle/moodle.git
synced 2025-01-17 13:38:32 +01:00
Merge branch 'MDL-81349-404' of https://github.com/paulholden/moodle into MOODLE_404_STABLE
This commit is contained in:
commit
e1816e9af1
@ -180,8 +180,8 @@ class group_form extends moodleform {
|
||||
} else {
|
||||
$idnumber = '';
|
||||
}
|
||||
if ($data['id'] and $group = $DB->get_record('groups', array('id'=>$data['id']))) {
|
||||
if (core_text::strtolower($group->name) != core_text::strtolower($name)) {
|
||||
if ($data['id'] && $group = $DB->get_record('groups', ['id' => $data['id']])) {
|
||||
if ($group->name != $name) {
|
||||
if (groups_get_group_by_name($COURSE->id, $name)) {
|
||||
$errors['name'] = get_string('groupnameexists', 'group', $name);
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user