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
This commit is contained in:
Matt Peel 2007-09-04 09:24:55 +00:00
parent 211f7b7ae6
commit 85b45924a2

View File

@ -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();