Index: course/lib.php IDEA additional info: Subsystem: com.intellij.openapi.diff.impl.patch.CharsetEP <+>UTF-8 =================================================================== --- course/lib.php (revision bbb12aa0932f2a7fad343c0ebb3329b1459966d4) +++ course/lib.php (revision ) @@ -2411,14 +2411,14 @@ } // Check we don't have a duplicate shortname. - if (!empty($data->shortname) && $oldcourse->shortname != $data->shortname) { + if (!empty($data->shortname) && textlib::strtolower($oldcourse->shortname) != textlib::strtolower($data->shortname)) { if ($DB->record_exists('course', array('shortname' => $data->shortname))) { throw new moodle_exception('shortnametaken', '', '', $data->shortname); } } // Check we don't have a duplicate idnumber. - if (!empty($data->idnumber) && $oldcourse->idnumber != $data->idnumber) { + if (!empty($data->idnumber) && textlib::strtolower($oldcourse->idnumber) != textlib::strtolower($data->idnumber)) { if ($DB->record_exists('course', array('idnumber' => $data->idnumber))) { throw new moodle_exception('idnumbertaken', 'error'); }