Improve error handling in MySQL/MySQLi DB drivers

This commit is contained in:
Kijin Sung 2016-03-20 00:45:20 +09:00
parent 5b5c785b19
commit 770644d114
2 changed files with 7 additions and 3 deletions

View file

@ -80,8 +80,8 @@ class DBMysqli extends DBMysql
{
if ($connection === null)
{
debug_print_backtrace();
exit;
$this->setError(-1, 'Unable to connect to DB.');
return false;
}
if($this->use_prepared_statements == 'Y')
{