Details
-
Bug
-
Status: Resolved
-
Minor
-
Resolution: Fixed
-
3.3.2
-
None
-
2016111107
-
MOODLE_33_STABLE
-
MOODLE_32_STABLE, MOODLE_33_STABLE, MOODLE_34_STABLE
Description
In questionnaire, classes/search/activity.php, it calls the base class get_document function. This function sometimes returns false if there is an error (such as invalid/partial data remaining in the database for a questionnaire), but the search class doesn't take account of this and can cause a PHP fatal error as a result, bringing search indexing (and the rest of that cron run) to a halt.
See attached patch.