MDL-12006, commenting out a line that doesn't seem to do anything

This commit is contained in:
toyomoyo 2007-11-05 02:17:28 +00:00
parent eeb28d3ff4
commit 50b474966c

View file

@ -792,7 +792,7 @@ function grade_set_uncategorized() {
// get instance name from db. // get instance name from db.
$instance = get_record($mod->modname, 'id', $mod->instance); $instance = get_record($mod->modname, 'id', $mod->instance);
// see if the item is already in the category table and if it is call category select with the id so it is selected // see if the item is already in the category table and if it is call category select with the id so it is selected
get_record('modules', 'name', $mod->modname); // get_record('modules', 'name', $mod->modname);
$item = get_record('grade_item', 'courseid', $course->id, 'modid', $mod->module, 'cminstance', $mod->instance); $item = get_record('grade_item', 'courseid', $course->id, 'modid', $mod->module, 'cminstance', $mod->instance);
if (!$item) { if (!$item) {
// set the item to uncategorized in grade_item // set the item to uncategorized in grade_item