From c3d1c42bb4a413f502d241f2fb8ff63ac63f2cab Mon Sep 17 00:00:00 2001 From: Greg Sabino Mullane Date: Sat, 22 Nov 2008 06:39:55 +0000 Subject: [PATCH] Need to bail without error if no user so installer works. --- includes/db/DatabasePostgres.php | 3 +++ 1 file changed, 3 insertions(+) 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; -- 2.20.1