]> git.mjollnir.org Git - moodle.git/commitdiff
MDL-14679 towards modform conversion - fixed regressions
authorskodak <skodak>
Sun, 1 Jun 2008 21:51:13 +0000 (21:51 +0000)
committerskodak <skodak>
Sun, 1 Jun 2008 21:51:13 +0000 (21:51 +0000)
course/modedit.php

index d85035b5faf346e34aca7c60da37d076e9b29ab7..efffa36d33dec744c709bea0c54cac1da3351df0 100644 (file)
@@ -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");
         }