MDL-14679 towards /themes conversion
This commit is contained in:
@@ -9,7 +9,7 @@ if (empty($THEME->chameleonenabled)) {
|
||||
}
|
||||
|
||||
$id = optional_param('id', SITEID, PARAM_INT);
|
||||
if (!$course = get_record('course', 'id', $id)) {
|
||||
if (!$course = $DB->get_record('course', array('id'=>$id))) {
|
||||
print_error('Incorrect course id');
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user