mirror of
https://github.com/moodle/moodle.git
synced 2025-04-21 00:12:56 +02:00
CONTRIB-775 reverting
This commit is contained in:
parent
bf8a832252
commit
87c53ef598
@ -34,7 +34,7 @@ $eid = optional_param('eid', 0, PARAM_ALPHANUM);
|
||||
|
||||
/// Make sure they can even access this course
|
||||
|
||||
if (!$course = $DB->get_record('course', array('id' => $courseid))) {
|
||||
if (!$course = get_record('course', 'id', $courseid)) {
|
||||
print_error('nocourseid');
|
||||
}
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user