MDL-32151 group: Use appropriate error langstring error key
authorJun Pataleta <jun@moodle.com>
Fri, 23 Jun 2017 02:22:34 +0000 (10:22 +0800)
committerJun Pataleta <jun@moodle.com>
Fri, 23 Jun 2017 02:27:37 +0000 (10:27 +0800)
group/groupings.php

index 063397e..aab6a37 100644 (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))) {
 $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);
 }
 
 require_login($course);