From: skodak Date: Tue, 3 Jun 2008 15:06:53 +0000 (+0000) Subject: MDL-15133 fixed regressions - thanks Howard X-Git-Url: http://git.mjollnir.org/gw?a=commitdiff_plain;h=0b18169eab996911582fdf9c6f25cbdf9065724c;p=moodle.git MDL-15133 fixed regressions - thanks Howard --- diff --git a/admin/roles/assign.php b/admin/roles/assign.php index 2c816eb13c..46de2d1862 100755 --- a/admin/roles/assign.php +++ b/admin/roles/assign.php @@ -48,7 +48,7 @@ } } else if (!empty($courseid)){ // we need this for user tabs in user context - if (!$course = $DB->get_record('course', array('id', $courseid))) { + if (!$course = $DB->get_record('course', array('id'=>$courseid))) { print_error('invalidcourse', 'error'); } diff --git a/mod/assignment/mod_form.php b/mod/assignment/mod_form.php index 450385cc5a..8b42ca0022 100644 --- a/mod/assignment/mod_form.php +++ b/mod/assignment/mod_form.php @@ -9,7 +9,7 @@ class mod_assignment_mod_form extends moodleform_mod { // this hack is needed for different settings of each subtype if (!empty($this->_instance)) { - if($ass = $DB->get_record('assignment', array('id', $this->_instance))) { + if($ass = $DB->get_record('assignment', array('id'=>$this->_instance))) { $type = $ass->assignmenttype; } else { print_error('invalidassignment', 'assignment');