CONTRIB-775 reverting
This commit is contained in:
@@ -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');
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user