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:
piers
2008-08-20 22:29:33 +00:00
parent 0e70c9ea14
commit 27fb07f87b
+1 -1
View File
@@ -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)) {