1
0
mirror of https://github.com/e107inc/e107.git synced 2025-08-19 04:41:53 +02:00

Fix for Banner insert issue when using PDO. Corrected display of MYSQL error messages when using PDO.

This commit is contained in:
Cameron
2016-05-29 11:00:37 -07:00
parent 00e388490a
commit 638d670183
3 changed files with 13 additions and 14 deletions

View File

@@ -2920,7 +2920,8 @@ class e_admin_model extends e_front_model
$this->_db_errmsg = $sql->getLastErrorText();
$this->addMessageError('SQL Insert Error', $session_messages); //TODO - Lan
$this->addMessageDebug('SQL Error #'.$this->_db_errno.': '.$sql->getLastErrorText());
$this->addMessageDebug('SQL Error #'.$this->_db_errno.': '.$this->_db_errmsg);
$this->addMessageDebug('SQL QRY Error '.print_a($sqlQry,true));
return false;
}