Merge branch 'MDL-66114-master-2' of git://github.com/marinaglancy/moodle

This commit is contained in:
Andrew Nicols
2019-07-10 14:28:27 +08:00
@@ -138,7 +138,9 @@ abstract class event_abstract_factory implements event_factory_interface {
$module = new cm_info_proxy($dbrow->modulename, $dbrow->instance, $dbrow->courseid);
}
$category = new coursecat_proxy($dbrow->categoryid);
if ($dbrow->categoryid) {
$category = new coursecat_proxy($dbrow->categoryid);
}
$course = new std_proxy($dbrow->courseid, function($id) {
return calendar_get_course_cached($this->coursecachereference, $id);