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-Tag: v1.0.8~63 X-Git-Url: http://git.moodle.org/gw?p=moodle.git;a=commitdiff_plain;h=7adcd58f82728e4f02601fa615e02ba977ac6aa0;ds=sidebyside 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 16a3dc8df55..a7b9a1e4186 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";