]> git.mjollnir.org Git - moodle.git/commitdiff
MDL-15094 fixed regression
authorskodak <skodak>
Wed, 4 Jun 2008 23:45:31 +0000 (23:45 +0000)
committerskodak <skodak>
Wed, 4 Jun 2008 23:45:31 +0000 (23:45 +0000)
admin/roles/assign.php
course/lib.php

index 46de2d186293bb660d5f4a23eae1716fdcdae21d..19715aea5fad9a897e51c8792c259f00400bdfdc 100755 (executable)
     }
 
     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));
     }
 
index 4e4416cdf59ba9800530781bb0ddcf93710a0ba4..84dcf1adbffcc90cc83f41124a04c12638cabf35 100644 (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.