From 85b45924a2fe27f73079f4558f2675d973e79939 Mon Sep 17 00:00:00 2001 From: Matt Peel Date: Tue, 4 Sep 2007 09:24:55 +0000 Subject: [PATCH] When mysql_connect() fails to establish a connection, it means that it couldn't connect, not that it could. :P git-svn-id: svn://svn.silverstripe.com/silverstripe/open/modules/sapphire/trunk@41234 467b73ca-7a2a-4603-9d3b-597d59a354a9 --- core/model/MySQLDatabase.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/core/model/MySQLDatabase.php b/core/model/MySQLDatabase.php index b679fef79..4134c6b7e 100644 --- a/core/model/MySQLDatabase.php +++ b/core/model/MySQLDatabase.php @@ -40,7 +40,7 @@ class MySQLDatabase extends Database { $this->active = mysql_select_db($parameters['database'], $this->dbConn); $this->database = $parameters['database']; if(!$this->dbConn) { - $this->databaseError("Could connect to MySQL database"); + $this->databaseError("Couldn't connect to MySQL database"); } parent::__construct();