From: Ilmari Karonen Date: Mon, 17 Jul 2006 21:36:19 +0000 (+0000) Subject: cleanup: remove redundant condition, already checked above X-Git-Tag: 1.31.0-rc.0~56189 X-Git-Url: http://git.cyclocoop.org/data/Luca_Pacioli_%28Gemaelde%29.jpeg?a=commitdiff_plain;h=749458ac10f3a1aa00ef115c3a803c4e9c4b8504;p=lhc%2Fweb%2Fwiklou.git cleanup: remove redundant condition, already checked above --- 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(); }