diff --git a/mod/scorm/datamodel.php b/mod/scorm/datamodel.php index d4b4cb43065..3b3a4dd4b85 100755 --- a/mod/scorm/datamodel.php +++ b/mod/scorm/datamodel.php @@ -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)) {