Prepend database name to all table names to avoid ADOdb bug when there
authormoodler <moodler>
Thu, 2 Jan 2003 11:09:03 +0000 (11:09 +0000)
committermoodler <moodler>
Thu, 2 Jan 2003 11:09:03 +0000 (11:09 +0000)
is multiple database connections at once.

lib/setup.php

index 16a3dc8..a7b9a1e 100644 (file)
@@ -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";