MDL-14679 towards modform conversion - fixed regressions
This commit is contained in:
+1
-1
@@ -92,7 +92,7 @@
|
||||
print_error("moduledoesnotexist");
|
||||
}
|
||||
|
||||
if (! $form = get_record($module->name, "id", $cm->instance)) {
|
||||
if (! $form = $DB->get_record($module->name, array("id"=>$cm->instance))) {
|
||||
print_error("moduleinstancedoesnotexist");
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user