MDL-15094 fixed regression
This commit is contained in:
@@ -114,7 +114,7 @@
|
||||
}
|
||||
|
||||
if ($userid) {
|
||||
$user = $DB->get_record('user', array('id', $userid));
|
||||
$user = $DB->get_record('user', array('id'=>$userid));
|
||||
$fullname = fullname($user, has_capability('moodle/site:viewfullnames', $context));
|
||||
}
|
||||
|
||||
|
||||
+1
-1
@@ -2153,7 +2153,7 @@ function get_course_section($section, $courseid) {
|
||||
$cw->summary = "";
|
||||
$cw->sequence = "";
|
||||
$id = $DB->insert_record("course_sections", $cw);
|
||||
return $DB->get_record("course_sections", "id", $id);
|
||||
return $DB->get_record("course_sections", array("id"=>$id));
|
||||
}
|
||||
/**
|
||||
* Given a full mod object with section and course already defined, adds this module to that section.
|
||||
|
||||
Reference in New Issue
Block a user