From ee3e5163c4165ee8f64572bd58f1f49224df5034 Mon Sep 17 00:00:00 2001 From: "Mark A. Hershberger" Date: Fri, 4 Feb 2011 00:21:59 +0000 Subject: [PATCH] =?utf8?q?re=20r81495=20=E2=80=94=20you=20know,=20I've=20c?= =?utf8?q?ompletely=20forgotten=20why=20I=20wanted=20to=20return=20a=20sta?= =?utf8?q?tus=20object.=20=20Fix=20that=20and=20not=20the=20busted=20statu?= =?utf8?q?s=20message.?= MIME-Version: 1.0 Content-Type: text/plain; charset=utf8 Content-Transfer-Encoding: 8bit --- includes/installer/PostgresInstaller.php | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/includes/installer/PostgresInstaller.php b/includes/installer/PostgresInstaller.php index 311e7d23dc..9efd0f4e10 100644 --- a/includes/installer/PostgresInstaller.php +++ b/includes/installer/PostgresInstaller.php @@ -138,10 +138,10 @@ class PostgresInstaller extends DatabaseInstaller { ); if( !$rights || ( $rights != 1 && $rights != 3 ) ) { - $status = Status::newFatal("can't create"); + return false; } - return $status; + return true; } public function getSettingsForm() { @@ -164,7 +164,7 @@ class PostgresInstaller extends DatabaseInstaller { // Validate the create checkbox $create = true; $canCreate = $this->canCreateAccounts(); - if ( !$canCreate->isOK() ) { + if ( $canCreate ) { $this->setVar( '_CreateDBAccount', false ); $create = false; } else { -- 2.20.1