diff --git a/theme/chameleon/ui/css.php b/theme/chameleon/ui/css.php index 258fab8e105..d7bd0fc5650 100644 --- a/theme/chameleon/ui/css.php +++ b/theme/chameleon/ui/css.php @@ -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'); }