Skip to content
Permalink
Browse files

MDL-62713 core_search: Cron error indexing sections in some cases

  • Loading branch information...
sammarshallou committed Jun 29, 2018
1 parent f61ee4e commit 23f6a88341537695b38ed4ea07acd30fd57334f0
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 23f6a88

Please sign in to comment.
You can’t perform that action at this time.