Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

MINOR Fixed undefined variable $error in MySQLDatabaseConfigurationHe…

…lper (from r100550)

git-svn-id: svn://svn.silverstripe.com/silverstripe/open/modules/sapphire/trunk@105602 467b73ca-7a2a-4603-9d3b-597d59a354a9
  • Loading branch information...
commit dd8d0c1259c67d5aff1f5cabec62d249318bca6f 1 parent 53ed23d
@chillu chillu authored
Showing with 2 additions and 0 deletions.
  1. +2 −0  dev/install/MySQLDatabaseConfigurationHelper.php
View
2  dev/install/MySQLDatabaseConfigurationHelper.php
@@ -28,6 +28,7 @@ public function requireDatabaseFunctions($databaseConfig) {
*/
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 @@ public function requireDatabaseServer($databaseConfig) {
*/
public function requireDatabaseConnection($databaseConfig) {
$success = false;
+ $error = '';
$conn = @mysql_connect($databaseConfig['server'], $databaseConfig['username'], $databaseConfig['password']);
if($conn) {
$success = true;
Please sign in to comment.
Something went wrong with that request. Please try again.