Skip to content

Commit

Permalink
Merge branch 'MDL-66114-master-2' of git://github.com/marinaglancy/mo…
Browse files Browse the repository at this point in the history
…odle
  • Loading branch information
andrewnicols committed Jul 10, 2019
2 parents 1b81ed2 + 1f37e37 commit aeac7a1
Showing 1 changed file with 3 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -138,7 +138,9 @@ public function create_instance(\stdClass $dbrow) {
$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);
Expand Down

0 comments on commit aeac7a1

Please sign in to comment.