mirror of
https://github.com/moodle/moodle.git
synced 2025-08-04 16:36:37 +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
|
@ -2944,10 +2944,8 @@ function forum_get_course_forum($courseid, $type) {
|
|||
echo $OUTPUT->notification("Could not add the new course module to that section");
|
||||
return false;
|
||||
}
|
||||
if (! $DB->set_field("course_modules", "section", $sectionid, array("id" => $mod->coursemodule))) {
|
||||
echo $OUTPUT->notification("Could not update the course module with the correct section");
|
||||
return false;
|
||||
}
|
||||
$DB->set_field("course_modules", "section", $sectionid, array("id" => $mod->coursemodule));
|
||||
|
||||
include_once("$CFG->dirroot/course/lib.php");
|
||||
rebuild_course_cache($courseid);
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue