diff options
Diffstat (limited to 'sqlbox/report.php')
-rw-r--r-- | sqlbox/report.php | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/sqlbox/report.php b/sqlbox/report.php index d9371d9..a3e0e08 100644 --- a/sqlbox/report.php +++ b/sqlbox/report.php @@ -6,9 +6,9 @@ require_once(dirname(__FILE__).'/lib.php'); $id = required_param('id', PARAM_INT); //moduleid if ($id) { - $cm = get_coursemodule_from_id('sqlbox', $id, 0, false, MUST_EXIST); - $course = $DB->get_record('course', array('id' => $cm->course), '*', MUST_EXIST); - $sqlbox = $DB->get_record('sqlbox', array('id' => $cm->instance), '*', MUST_EXIST); + $cm = get_coursemodule_from_id('sqlbox', $id, 0, false, MUST_EXIST); + $course = $DB->get_record('course', array('id' => $cm->course), '*', MUST_EXIST); + $sqlbox = $DB->get_record('sqlbox', array('id' => $cm->instance), '*', MUST_EXIST); } else { print_error('invalidcourse'); } |