From 6382c482c877220aafae890ddfb8a4f25fad9bdf Mon Sep 17 00:00:00 2001 From: Renaat Debleu Date: Mon, 11 Nov 2013 10:19:46 +0800 Subject: [PATCH] MDL-42795 course: fixed param course in sql course_sections has course field and not courseid, hence replaced it with course. --- course/format/lib.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/course/format/lib.php b/course/format/lib.php index 1980441d8ec..38c4a69b989 100644 --- a/course/format/lib.php +++ b/course/format/lib.php @@ -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 { -- 2.43.0