From: moodler Date: Thu, 2 Jan 2003 11:09:03 +0000 (+0000) Subject: Prepend database name to all table names to avoid ADOdb bug when there X-Git-Url: http://git.mjollnir.org/gw?a=commitdiff_plain;h=7adcd58f82728e4f02601fa615e02ba977ac6aa0;p=moodle.git Prepend database name to all table names to avoid ADOdb bug when there is multiple database connections at once. --- diff --git a/lib/setup.php b/lib/setup.php index 16a3dc8df5..a7b9a1e418 100644 --- a/lib/setup.php +++ b/lib/setup.php @@ -26,6 +26,7 @@ if (!isset($CFG->prefix)) { // Just in case it isn't defined in config.php $CFG->prefix = ""; } + $CFG->prefix = "$CFG->dbname.$CFG->prefix";