summaryrefslogtreecommitdiff
path: root/sqlbox/reportall.php
diff options
context:
space:
mode:
Diffstat (limited to 'sqlbox/reportall.php')
-rw-r--r--sqlbox/reportall.php2
1 files changed, 1 insertions, 1 deletions
diff --git a/sqlbox/reportall.php b/sqlbox/reportall.php
index 659da9c..b11a422 100644
--- a/sqlbox/reportall.php
+++ b/sqlbox/reportall.php
@@ -10,7 +10,7 @@ if ($id) {
$course = $DB->get_record('course', array('id' => $cm->course), '*', MUST_EXIST);
$sqlbox = $DB->get_record('sqlbox', array('id' => $cm->instance), '*', MUST_EXIST);
} else {
- error('You must specify a course_module ID or an instance ID');
+ print_error('invalidcourse');
}
require_login($course, true, $cm);