From 749458ac10f3a1aa00ef115c3a803c4e9c4b8504 Mon Sep 17 00:00:00 2001 From: Ilmari Karonen Date: Mon, 17 Jul 2006 21:36:19 +0000 Subject: [PATCH] cleanup: remove redundant condition, already checked above --- maintenance/update.php | 6 +----- 1 file changed, 1 insertion(+), 5 deletions(-) diff --git a/maintenance/update.php b/maintenance/update.php index 8643aa7927..b1ab56b21a 100644 --- a/maintenance/update.php +++ b/maintenance/update.php @@ -37,11 +37,7 @@ $wgDatabase = $dbc->newFromParams( $wgDBserver, $wgDBadminuser, $wgDBadminpasswo if( !$wgDatabase->isOpen() ) { # Appears to have failed echo( "A connection to the database could not be established. Check the\n" ); - # Let's be a bit clever and guess at what's wrong - if( isset( $wgDBadminuser ) && isset( $wgDBadminpassword ) ) { - # Tell the user the value(s) are wrong - echo( 'values of $wgDBadminuser and $wgDBadminpassword.' . "\n" ); - } + echo( "values of \$wgDBadminuser and \$wgDBadminpassword.\n" ); exit(); } -- 2.20.1