Do not set the courseid variable for the cm_info object

Doing this causes a debugging message to display in 2.6.
This commit is contained in:
Mark Nelson 2013-10-31 14:45:03 +08:00
parent 34c0622d95
commit f56b82e4b6

View file

@ -182,7 +182,6 @@ class customcert_element_grade extends customcert_element_base {
continue;
}
$mod = $mods[$sectionmod];
$mod->courseid = $COURSE->id;
$instance = $DB->get_record($mod->modname, array('id' => $mod->instance));
// Get the grade items for this activity.
if ($gradeitems = grade_get_grade_items_for_activity($mod)) {