From 78a0c06ae6ac65c239e5b497601f533d66ab0b5b Mon Sep 17 00:00:00 2001 From: paca70 Date: Fri, 24 Sep 2004 08:41:03 +0000 Subject: [PATCH] DB-authentication fix for postgres7. Fix bud id 1740 --- auth/db/lib.php | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/auth/db/lib.php b/auth/db/lib.php index cacc0057cf1b7..8e58bfdd5863d 100644 --- a/auth/db/lib.php +++ b/auth/db/lib.php @@ -12,7 +12,9 @@ function auth_user_login ($username, $password) { // two databases of the same kind ... it seems to get confused when trying to access // the first database again, after having accessed the second. // The following hack will make the database explicit which keeps it happy - $CFG->prefix = "$CFG->dbname.$CFG->prefix"; + if ($CFG->dbtype != 'postgres7') { + $CFG->prefix = "$CFG->dbname.$CFG->prefix"; + } // Connect to the external database $authdb = &ADONewConnection($CFG->auth_dbtype);