[multienrol]Fixed a typo in database upgrade script. Bug #4528

This commit is contained in:
martinlanghoff
2006-03-09 03:47:54 +00:00
parent 29f8533223
commit 4af1efecf7
2 changed files with 2 additions and 2 deletions
+1 -1
View 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');
}
}
+1 -1
View 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');
}
}