Permalink
Browse files

Merge branch 'MDL-62713-master' of https://github.com/sammarshallou/m…

  • Loading branch information...
dmonllao committed Jul 2, 2018
2 parents 744a9de + 23f6a88 commit e460c9589363a67684ac49bc4d5414d9d74426f0
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 e460c95

Please sign in to comment.