From 2cbd725cf72eee824c2aa20c1d9c4715c93a4403 Mon Sep 17 00:00:00 2001 From: skodak Date: Sun, 1 Jun 2008 21:51:13 +0000 Subject: [PATCH] MDL-14679 towards modform conversion - fixed regressions --- course/modedit.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/course/modedit.php b/course/modedit.php index d85035b5fa..efffa36d33 100644 --- a/course/modedit.php +++ b/course/modedit.php @@ -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"); } -- 2.39.5