]> git.mjollnir.org Git - moodle.git/commitdiff
MDL-15133 fixed regressions - thanks Howard
authorskodak <skodak>
Tue, 3 Jun 2008 15:06:53 +0000 (15:06 +0000)
committerskodak <skodak>
Tue, 3 Jun 2008 15:06:53 +0000 (15:06 +0000)
admin/roles/assign.php
mod/assignment/mod_form.php

index 2c816eb13c3dcd359edd1a314d0f55e9089485cf..46de2d186293bb660d5f4a23eae1716fdcdae21d 100755 (executable)
@@ -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');
         }
 
index 450385cc5aaf43e7e3f627f954e3c8ad73c61833..8b42ca0022283fb223f55ba76082ef5b0ae3f005 100644 (file)
@@ -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');