fix hiding error msgs when updating kleeja

This commit is contained in:
Mitan Omar
2019-08-30 08:16:36 +02:00
parent d1fed7cc8b
commit 04ea571977
3 changed files with 19 additions and 16 deletions

View File

@@ -475,7 +475,7 @@ class KleejaDatabase
*/
private function error_msg($msg)
{
if (! $this->show_errors)
if (! $this->show_errors || (defined('SQL_NO_ERRORS') || defined('MYSQL_NO_ERRORS')))
{
kleeja_log('SQLite3: ' . $msg);
return false;