MDL-14679 towards /themes conversion

This commit is contained in:
skodak
2008-05-31 11:42:44 +00:00
parent bc3c2336ba
commit 5dd27c57f6
+1 -1
View File
@@ -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');
}