From: Greg Sabino Mullane Date: Sat, 22 Nov 2008 06:39:55 +0000 (+0000) Subject: Need to bail without error if no user so installer works. X-Git-Tag: 1.31.0-rc.0~44223 X-Git-Url: http://git.cyclocoop.org/%7B%24www_url%7Dadmin/password.php?a=commitdiff_plain;h=c3d1c42bb4a413f502d241f2fb8ff63ac63f2cab;p=lhc%2Fweb%2Fwiklou.git Need to bail without error if no user so installer works. --- diff --git a/includes/db/DatabasePostgres.php b/includes/db/DatabasePostgres.php index e85cc874d7..eb15747dcb 100644 --- a/includes/db/DatabasePostgres.php +++ b/includes/db/DatabasePostgres.php @@ -132,6 +132,9 @@ class DatabasePostgres extends Database { global $wgDBport; + if (!strlen($user)) { ## e.g. the class is being loaded + return; + } $this->close(); $this->mServer = $server; $this->mPort = $port = $wgDBport;