Permalink
Browse files

BUGFIX Fixed MySQL connection in installer not detecting incorrect cr…

…edentials (from r98760)

git-svn-id: svn://svn.silverstripe.com/silverstripe/open/phpinstaller/trunk@112096 467b73ca-7a2a-4603-9d3b-597d59a354a9
  • Loading branch information...
1 parent 42144c2 commit 7363fe54a5a2e93ae389007faa1f651698337a18 sminnee committed Oct 13, 2010
Showing with 1 addition and 1 deletion.
  1. +1 −1 install.php
View
@@ -620,7 +620,7 @@ function requireDatabaseConnection($databaseConfig, $testDetails) {
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();

0 comments on commit 7363fe5

Please sign in to comment.