Permalink
Browse files

DB-authentication fix for postgres7.

Fix bud id 1740
  • Loading branch information...
1 parent 8c58973 commit 78a0c06ae6ac65c239e5b497601f533d66ab0b5b paca70 committed Sep 24, 2004
Showing with 3 additions and 1 deletion.
  1. +3 −1 auth/db/lib.php
View
@@ -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);

0 comments on commit 78a0c06

Please sign in to comment.