From 0b18169eab996911582fdf9c6f25cbdf9065724c Mon Sep 17 00:00:00 2001 From: skodak Date: Tue, 3 Jun 2008 15:06:53 +0000 Subject: [PATCH] MDL-15133 fixed regressions - thanks Howard --- admin/roles/assign.php | 2 +- mod/assignment/mod_form.php | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) 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'); -- 2.39.5