mirror of
https://github.com/moodle/moodle.git
synced 2025-08-06 17:36:38 +02:00
MDL-14679 fixed remaining old style set_field()s
This commit is contained in:
parent
dd88de0ebd
commit
f685e83030
26 changed files with 82 additions and 167 deletions
|
@ -43,9 +43,7 @@ $context = get_context_instance(CONTEXT_COURSE, $course->id);
|
|||
|
||||
if (($marker >=0) && has_capability('moodle/course:setcurrentsection', $context) && confirm_sesskey()) {
|
||||
$course->marker = $marker;
|
||||
if (! $DB->set_field("course", "marker", $marker, array("id"=>$course->id))) {
|
||||
print_error("cannotmarktopic");
|
||||
}
|
||||
$DB->set_field("course", "marker", $marker, array("id"=>$course->id));
|
||||
}
|
||||
|
||||
$streditsummary = get_string('editsummary');
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue