diff options
author | Benjamin Franzke <benjaminfranzke@googlemail.com> | 2013-01-25 09:25:23 +0100 |
---|---|---|
committer | Benjamin Franzke <benjaminfranzke@googlemail.com> | 2013-01-25 09:25:23 +0100 |
commit | a278371368e6ece009bd62504788898ae256d868 (patch) | |
tree | 99363223bdb719833e3d5bd99d0578bf1d8c6410 /sqlbox/report.php | |
parent | a3d5dfe86e51c71a7b29776f48e107ccd6fabb31 (diff) | |
download | sqltutor-plugin-a278371368e6ece009bd62504788898ae256d868.tar.gz sqltutor-plugin-a278371368e6ece009bd62504788898ae256d868.tar.bz2 sqltutor-plugin-a278371368e6ece009bd62504788898ae256d868.zip |
Fix coding style
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'); } |