MDL-15094 fixed regression

This commit is contained in:
skodak
2008-06-04 23:45:31 +00:00
parent 7b0d12b271
commit dc5af91a86
2 changed files with 2 additions and 2 deletions
+1 -1
View File
@@ -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
View File
@@ -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.