From: skodak Date: Wed, 4 Jun 2008 23:45:31 +0000 (+0000) Subject: MDL-15094 fixed regression X-Git-Url: http://git.mjollnir.org/gw?a=commitdiff_plain;h=dc5af91a8640aba66d1fbaa99e6fba19e93648f6;p=moodle.git MDL-15094 fixed regression --- diff --git a/admin/roles/assign.php b/admin/roles/assign.php index 46de2d1862..19715aea5f 100755 --- a/admin/roles/assign.php +++ b/admin/roles/assign.php @@ -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)); } diff --git a/course/lib.php b/course/lib.php index 4e4416cdf5..84dcf1adbf 100644 --- a/course/lib.php +++ b/course/lib.php @@ -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.