diff --git a/dev/install/MySQLDatabaseConfigurationHelper.php b/dev/install/MySQLDatabaseConfigurationHelper.php index 48136b892..b327e95f3 100644 --- a/dev/install/MySQLDatabaseConfigurationHelper.php +++ b/dev/install/MySQLDatabaseConfigurationHelper.php @@ -28,6 +28,7 @@ class MySQLDatabaseConfigurationHelper implements DatabaseConfigurationHelper { */ public function requireDatabaseServer($databaseConfig) { $success = false; + $error = ''; $conn = @mysql_connect($databaseConfig['server'], null, null); if($conn || mysql_errno() < 2000) { $success = true; @@ -48,6 +49,7 @@ class MySQLDatabaseConfigurationHelper implements DatabaseConfigurationHelper { */ public function requireDatabaseConnection($databaseConfig) { $success = false; + $error = ''; $conn = @mysql_connect($databaseConfig['server'], $databaseConfig['username'], $databaseConfig['password']); if($conn) { $success = true;