From 4be90930684612ec6321c273f64c18cf899cbf55 Mon Sep 17 00:00:00 2001 From: piers Date: Wed, 20 Aug 2008 22:26:10 +0000 Subject: [PATCH] MDL-13431 - SCORM results not transferring to Gradebook. Use the correct method for getting the course object. --- mod/scorm/datamodel.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/mod/scorm/datamodel.php b/mod/scorm/datamodel.php index f04d6c8b04..d5a22cfe00 100755 --- a/mod/scorm/datamodel.php +++ b/mod/scorm/datamodel.php @@ -10,7 +10,7 @@ if (!empty($id)) { - if (! $cm = $DB->get_record("course_modules", array("id"=>$id))) { + if (! $cm = get_coursemodule_from_id('scorm', $id)) { print_error('invalidcoursemodule'); } if (! $course = $DB->get_record("course", array("id"=>$cm->course))) { -- 2.39.5