mirror of
https://github.com/moodle/moodle.git
synced 2025-08-06 17:36:38 +02:00
"MDL-14129, fix print_error call under course/, see tracker"
This commit is contained in:
parent
211c6890c5
commit
ba6018a902
17 changed files with 146 additions and 117 deletions
|
@ -7,7 +7,7 @@
|
|||
$id = required_param('id', PARAM_INT); // course id
|
||||
|
||||
if (! $course = get_record("course", "id", $id)) {
|
||||
print_error("Course ID was incorrect");
|
||||
print_error("invalidcourseid");
|
||||
}
|
||||
|
||||
require_login($course);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue