MDL-14679 DML conversion regression

This commit is contained in:
skodak 2008-09-02 22:20:35 +00:00
parent b229ac31b1
commit 878af9ade6

View File

@ -29,7 +29,7 @@
print_header($strscales);
if ($scaleid) {
if ($scale = get_record("scale", 'id', $scaleid)) {
if ($scale = $DB->get_record("scale", array('id'=>$scaleid))) {
if ($scale->courseid == 0 || $scale->courseid == $course->id) {
$scalemenu = make_menu_from_list($scale->scale);