Browse files

MDL-42795 course: fixed param course in sql

course_sections has course field and not courseid, hence replaced it with course.
  • Loading branch information...
1 parent 89e6c5c commit 2602828491cd50992d48fe899a55dcacee7e94d3 @rdebleu rdebleu committed with rajeshtaneja Nov 11, 2013
Showing with 1 addition and 1 deletion.
  1. +1 −1 course/format/lib.php
View
2 course/format/lib.php
@@ -554,7 +554,7 @@ public function get_format_options($section = null) {
$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 {

0 comments on commit 2602828

Please sign in to comment.