MINOR Supress any error connecting to the database so the installer

doesn't show it in the page header
This commit is contained in:
Sean Harvey 2012-04-30 11:15:21 +12:00
parent 5e7e823c73
commit 3ccaa1f864

View File

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