mirror of
https://github.com/silverstripe/silverstripe-framework
synced 2024-10-22 12:05:37 +00:00
MINOR Supress any error connecting to the database so the installer
doesn't show it in the page header
This commit is contained in:
parent
5e7e823c73
commit
3ccaa1f864
@ -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 {
|
||||
|
Loading…
x
Reference in New Issue
Block a user