From a3d5dfe86e51c71a7b29776f48e107ccd6fabb31 Mon Sep 17 00:00:00 2001 From: Benjamin Franzke Date: Fri, 25 Jan 2013 09:14:18 +0100 Subject: Replace all deprecated error() calls with print_error --- sqlbox/report.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'sqlbox/report.php') diff --git a/sqlbox/report.php b/sqlbox/report.php index ad907a2..d9371d9 100644 --- a/sqlbox/report.php +++ b/sqlbox/report.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); -- cgit