From: skodak Date: Sun, 1 Jun 2008 21:51:13 +0000 (+0000) Subject: MDL-14679 towards modform conversion - fixed regressions X-Git-Url: http://git.mjollnir.org/gw?a=commitdiff_plain;h=2cbd725cf72eee824c2aa20c1d9c4715c93a4403;p=moodle.git MDL-14679 towards modform conversion - fixed regressions --- 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"); }