From a5d3dfed0933e61c22eaf96927aec86dd069da80 Mon Sep 17 00:00:00 2001 From: dMetzger Date: Wed, 8 Aug 2012 07:02:22 +0000 Subject: [PATCH] // Source typo #PSCFV-3562 git-svn-id: http://dev.prestashop.com/svn/v1/branches/1.5.x@16754 b9a71923-0436-4b27-9f14-aed3839534dd --- classes/db/DbMySQLi.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/classes/db/DbMySQLi.php b/classes/db/DbMySQLi.php index 4aef886ef..2d344d381 100644 --- a/classes/db/DbMySQLi.php +++ b/classes/db/DbMySQLi.php @@ -170,7 +170,7 @@ class DbMySQLiCore extends Db if (!$link->options(MYSQLI_OPT_CONNECT_TIMEOUT, $timeout)) return 1; - if (!$link->real_connect($server, $user, $pwd, $db); + if (!$link->real_connect($server, $user, $pwd, $db)) return (mysqli_connect_errno() == 1049) ? 2 : 1; if (strtolower($engine) == 'innodb')