Permalink
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...
1 parent 53ed23d commit dd8d0c1259c67d5aff1f5cabec62d249318bca6f @chillu chillu committed May 25, 2010
Showing with 2 additions and 0 deletions.
  1. +2 −0 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;

0 comments on commit dd8d0c1

Please sign in to comment.