Skip to content

Commit

Permalink
MDL-15094 fixed regression
Browse files Browse the repository at this point in the history
  • Loading branch information
skodak committed Jun 4, 2008
1 parent 7b0d12b commit dc5af91
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion admin/roles/assign.php
Expand Up @@ -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));
}

Expand Down
2 changes: 1 addition & 1 deletion course/lib.php
Expand Up @@ -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.
Expand Down

0 comments on commit dc5af91

Please sign in to comment.