Typo. Bug 3917. Credits for liling! B-)
(http://moodle.org/bugs/bug.php?op=show&bugid=3917)
This commit is contained in:
+1
-1
@@ -2480,7 +2480,7 @@ function grade_insert_category() {
|
||||
}
|
||||
|
||||
// make sure the record isn't already there and insert if okay
|
||||
if (record_exists('grade_category', 'name', $category->name, 'courseid', $category->course)) {
|
||||
if (record_exists('grade_category', 'name', $category->name, 'courseid', $category->courseid)) {
|
||||
// category already exists
|
||||
}
|
||||
elseif ($category->name != ''){
|
||||
|
||||
Reference in New Issue
Block a user