Skip to content
Permalink
Browse files

Merge branch 'm23_MDL-33942' of git://github.com/danmarsden/moodle in…

…to MOODLE_23_STABLE
  • Loading branch information...
Aparup Banerjee
Aparup Banerjee committed Aug 7, 2012
2 parents 5b74170 + 605d6ff commit e2036435391a0b8d129e5f0a55a97bb4654cb59f
Showing with 3 additions and 1 deletion.
  1. +3 −1 grade/grading/form/guide/lib.php
@@ -339,7 +339,9 @@ protected function load_definition() {
$modulename = substr($modulename, 4);
if ($dbman->table_exists($modulename)) {
$cm = get_coursemodule_from_id($modulename, $context->instanceid);
$this->moduleinstance = $DB->get_record($modulename, array("id"=>$cm->instance));
if (!empty($cm)) { // This should only occur when the course is being deleted.
$this->moduleinstance = $DB->get_record($modulename, array("id"=>$cm->instance));
}
}
}
}

0 comments on commit e203643

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