From 33d3e94ed860f5656237f7d89ef3d6e3a8cbb6ae Mon Sep 17 00:00:00 2001 From: mMarinetti Date: Wed, 21 Dec 2011 19:58:01 +0000 Subject: [PATCH] // removed useless Tools::displayError() --- classes/db/Db.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/classes/db/Db.php b/classes/db/Db.php index 75ecacd91..5be1b2fba 100644 --- a/classes/db/Db.php +++ b/classes/db/Db.php @@ -546,8 +546,8 @@ abstract class DbCore else if (_PS_DEBUG_SQL_ && $errno && !defined('PS_INSTALLATION_IN_PROGRESS')) { if ($sql) - throw new PrestashopDatabaseException(Tools::displayError($this->getMsgError().'

'.$sql.'
')); - throw new PrestashopDatabaseException(Tools::displayError($this->getMsgError())); + throw new PrestashopDatabaseException($this->getMsgError().'

'.$sql.'
'); + throw new PrestashopDatabaseException($this->getMsgError()); } }