Do not depend on the lack of a server for connecting: Postgres has a valid and common...
authorGreg Sabino Mullane <greg@users.mediawiki.org>
Mon, 21 Mar 2011 21:20:11 +0000 (21:20 +0000)
committerGreg Sabino Mullane <greg@users.mediawiki.org>
Mon, 21 Mar 2011 21:20:11 +0000 (21:20 +0000)
includes/db/Database.php

index 2a8c198..f6ab1f6 100644 (file)
@@ -518,7 +518,7 @@ abstract class DatabaseBase implements DatabaseType {
                        $this->mTablePrefix = $tablePrefix;
                }
 
-               if ( $server ) {
+               if ( $user ) {
                        $this->open( $server, $user, $password, $dbName );
                }
        }