MDL-14679 fixed remaining old style set_field()s

This commit is contained in:
Petr Skoda 2010-09-03 18:14:55 +00:00
parent dd88de0ebd
commit f685e83030
26 changed files with 82 additions and 167 deletions

View file

@ -68,9 +68,7 @@
$visible = 1;
}
if ($course) {
if (! $DB->set_field("course", "visible", $visible, array("id"=>$course->id))) {
echo $OUTPUT->notification("Could not update that course!");
}
$DB->set_field("course", "visible", $visible, array("id"=>$course->id));
}
}
}