Merge pull request #162 from dompie/master

Enhance installation on webhosters
This commit is contained in:
Ingo Schommer 2012-01-12 06:41:39 -08:00
commit 3eda9dbf12

View File

@ -29,7 +29,7 @@ class MySQLDatabaseConfigurationHelper implements DatabaseConfigurationHelper {
public function requireDatabaseServer($databaseConfig) {
$success = false;
$error = '';
$conn = @mysql_connect($databaseConfig['server'], null, null);
$conn = @mysql_connect($databaseConfig['server'], $databaseConfig['username'], $databaseConfig['password']);
if($conn || mysql_errno() < 2000) {
$success = true;
} else {