mirror of
https://github.com/moodle/moodle.git
synced 2025-04-22 08:55:15 +02:00
MDL-42795 course: fixed param course in sql
course_sections has course field and not courseid, hence replaced it with course.
This commit is contained in:
parent
d214057cad
commit
6382c482c8
@ -572,7 +572,7 @@ abstract class format_base {
|
||||
$sectionid = $section->id;
|
||||
} else if ($this->courseid && is_int($section) &&
|
||||
($sectionobj = $DB->get_record('course_sections',
|
||||
array('section' => $section, 'courseid' => $this->courseid), 'id'))) {
|
||||
array('section' => $section, 'course' => $this->courseid), 'id'))) {
|
||||
// course section format options will be returned
|
||||
$sectionid = $sectionobj->id;
|
||||
} else {
|
||||
|
Loading…
x
Reference in New Issue
Block a user