From 4af1efecf7b91ccb3a30ee2f4334e09b1646eb28 Mon Sep 17 00:00:00 2001 From: martinlanghoff Date: Thu, 9 Mar 2006 03:47:54 +0000 Subject: [PATCH] [multienrol]Fixed a typo in database upgrade script. Bug #4528 --- lib/db/mysql.php | 2 +- lib/db/postgres7.php | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/lib/db/mysql.php b/lib/db/mysql.php index 9f0f535939a..7cdcb814ed3 100644 --- a/lib/db/mysql.php +++ b/lib/db/mysql.php @@ -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'); } } diff --git a/lib/db/postgres7.php b/lib/db/postgres7.php index c3addef052b..4bf53b43c87 100644 --- a/lib/db/postgres7.php +++ b/lib/db/postgres7.php @@ -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'); } }