// Replace 'server' with 'host' in PDO DSN #PSFV-442

git-svn-id: http://dev.prestashop.com/svn/v1/branches/1.5.x@13245 b9a71923-0436-4b27-9f14-aed3839534dd
This commit is contained in:
rMalie
2012-02-13 10:00:55 +00:00
parent 1259433a28
commit ecc49b160e
+2 -2
View File
@@ -43,10 +43,10 @@ class DbPDOCore extends Db
if (strpos($this->server, ':') !== false)
{
list($server, $port) = explode(':', $this->server);
$dsn .= ';server='.$server.';port='.$port;
$dsn .= ';host='.$server.';port='.$port;
}
else
$dsn .= ';server='.$this->server;
$dsn .= ';host='.$this->server;
$this->link = new PDO($dsn, $this->user, $this->password);
}