MDL-32151 group: Use appropriate error langstring error key

This commit is contained in:
Jun Pataleta 2017-06-23 10:22:34 +08:00
parent d9ce6a4ffb
commit 628fbd48fe

View File

@ -31,7 +31,7 @@ $courseid = required_param('id', PARAM_INT);
$PAGE->set_url('/group/groupings.php', array('id'=>$courseid));
if (!$course = $DB->get_record('course', array('id'=>$courseid))) {
print_error('nocourseid');
print_error('invalidcourseid');
}
require_login($course);