// Fix a little bug on PDO

git-svn-id: http://dev.prestashop.com/svn/v1/branches/1.5.x@10964 b9a71923-0436-4b27-9f14-aed3839534dd
This commit is contained in:
rMalie
2011-12-06 09:04:40 +00:00
parent a6779e2057
commit 3cf72856ff
+2 -2
View File
@@ -109,7 +109,7 @@ class DbPDOCore extends Db
public function getMsgError($query = false)
{
$error = $this->link->errorInfo();
return $error[2];
return ($error[0] == '00000') ? '' : $error[2];
}
/**
@@ -118,7 +118,7 @@ class DbPDOCore extends Db
public function getNumberError()
{
$error = $this->link->errorInfo();
return $error[1];
return isset($error[1]) ? $error[1] : 0;
}
/**