]> git.mjollnir.org Git - moodle.git/commitdiff
[multienrol]Fixed a typo in database upgrade script. Bug #4528
authormartinlanghoff <martinlanghoff>
Thu, 9 Mar 2006 03:47:54 +0000 (03:47 +0000)
committermartinlanghoff <martinlanghoff>
Thu, 9 Mar 2006 03:47:54 +0000 (03:47 +0000)
lib/db/mysql.php
lib/db/postgres7.php

index 9f0f535939a6d93eaed6d77d558b012c4a6f72b2..7cdcb814ed3d5872b9973ebd00e5f6393bc9f888 100644 (file)
@@ -1664,7 +1664,7 @@ function main_upgrade($oldversion=0) {
         require_once("$CFG->dirroot/enrol/enrol.class.php");
         $defaultenrol = enrolment_factory::factory($CFG->enrol);
         if (!method_exists($defaultenrol, 'print_entry')) { // switch enrollable to off for all courses in this case
-            modify_database('', 'UPDATE prefix_couse SET enrollable = 0');
+            modify_database('', 'UPDATE prefix_course SET enrollable = 0');
         }
     }
 
index c3addef052bac6a28032fbb9110cc0b58c2767da..4bf53b43c87b880620bf5de9a4da7fba31eb7499 100644 (file)
@@ -1407,7 +1407,7 @@ function main_upgrade($oldversion=0) {
         require_once("$CFG->dirroot/enrol/enrol.class.php");
         $defaultenrol = enrolment_factory::factory($CFG->enrol);
         if (!method_exists($defaultenrol, 'print_entry')) { // switch enrollable to off for all courses in this case
-            modify_database('', 'UPDATE prefix_couse SET enrollable = 0');
+            modify_database('', 'UPDATE prefix_course SET enrollable = 0');
         }
     }