mirror of
https://github.com/moodle/moodle.git
synced 2025-04-22 17:02:03 +02:00
MDL-15133 fixed regressions - thanks Howard
This commit is contained in:
parent
6d2d4228d0
commit
0b18169eab
@ -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');
|
||||
}
|
||||
|
||||
|
@ -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');
|
||||
|
Loading…
x
Reference in New Issue
Block a user