BUGFIX Fixed MySQL connection in installer not detecting incorrect credentials

git-svn-id: svn://svn.silverstripe.com/silverstripe/open/phpinstaller/branches/2.4@98760 467b73ca-7a2a-4603-9d3b-597d59a354a9
This commit is contained in:
sharvey 2010-02-11 03:00:09 +00:00 committed by Sam Minnee
parent 23a5873178
commit a5cd285a16

View File

@ -620,7 +620,7 @@ class InstallRequirements {
if($databaseConfig['type'] == 'MySQLDatabase') {
$this->dbConn = $conn = @mysql_connect($databaseConfig['server'], $databaseConfig['username'], $databaseConfig['password']);
if($conn || mysql_errno() < 2000) {
if($conn) {
return true;
} else {
$testDetails[2] .= ": " . mysql_error();