MDL-13431 - SCORM results not transferring to Gradebook. Use the correct method for getting the course object. Backport 1.9.
This commit is contained in:
@@ -10,7 +10,7 @@
|
||||
|
||||
|
||||
if (!empty($id)) {
|
||||
if (! $cm = get_record("course_modules", "id", $id)) {
|
||||
if (! $cm = get_coursemodule_from_id('scorm', $id)) {
|
||||
error("Course Module ID was incorrect");
|
||||
}
|
||||
if (! $course = get_record("course", "id", $cm->course)) {
|
||||
|
||||
Reference in New Issue
Block a user