From 7363fe54a5a2e93ae389007faa1f651698337a18 Mon Sep 17 00:00:00 2001 From: sminnee Date: Wed, 13 Oct 2010 02:42:44 +0000 Subject: [PATCH] BUGFIX Fixed MySQL connection in installer not detecting incorrect credentials (from r98760) git-svn-id: svn://svn.silverstripe.com/silverstripe/open/phpinstaller/trunk@112096 467b73ca-7a2a-4603-9d3b-597d59a354a9 --- install.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/install.php b/install.php index c9e4c4e..6e15bc2 100644 --- a/install.php +++ b/install.php @@ -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();