From 20f88deb5a6f009e0ca502dc3cff32ec6963b897 Mon Sep 17 00:00:00 2001 From: Dan Marsden Date: Wed, 5 May 2010 23:50:43 +0000 Subject: [PATCH] SCORM Grades MDL-22332 redirect to report page correctly from gradebook - thanks to Valerian for report/fix. (pushed wrong db calls) - oops! --- mod/scorm/grade.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/mod/scorm/grade.php b/mod/scorm/grade.php index cb3ad5bf797..3e239f68682 100644 --- a/mod/scorm/grade.php +++ b/mod/scorm/grade.php @@ -8,11 +8,11 @@ print_error('invalidcoursemodule'); } - if (! $scorm = get_record('scorm', 'id', $cm->instance)) { + if (! $scorm = $DB->get_record('scorm', array('id'=>$cm->instance))) { print_error('invalidcoursemodule'); } - if (! $course = get_record('course', 'id', $scorm->course)) { + if (! $course = $DB->get_record('course', array('id'=> $scorm->course))) { print_error('coursemisconf'); } -- 2.43.0