Permalink
Browse files

Merge branch 'MDL-62713-m35' of https://github.com/sammarshallou/moodle

… into MOODLE_35_STABLE
  • Loading branch information...
dmonllao committed Jul 2, 2018
2 parents 3879b52 + c843630 commit d42328e223aa60e5d6d028ed4cf07a77f2ed8e05
Showing with 3 additions and 0 deletions.
  1. +3 −0 course/classes/search/section.php
@@ -85,6 +85,9 @@ public function get_document_recordset($modifiedfrom = 0, \context $context = nu
* @return \core_search\document
*/
public function get_document($record, $options = array()) {
global $CFG;
require_once($CFG->dirroot . '/course/lib.php');
// Get the context, modinfo, and section.
try {
$context = \context_course::instance($record->course);

0 comments on commit d42328e

Please sign in to comment.