From c2d6876ac62b2db0f07ae4e5ed1fee3ab85c1659 Mon Sep 17 00:00:00 2001 From: Dany De Bontridder Date: Thu, 8 Aug 2019 16:40:14 +0200 Subject: [PATCH] DatabaseCore fix silent when not debug --- include/lib/database_core.class.php | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/include/lib/database_core.class.php b/include/lib/database_core.class.php index ff42ea6bd..dca335852 100644 --- a/include/lib/database_core.class.php +++ b/include/lib/database_core.class.php @@ -165,12 +165,12 @@ class DatabaseCore } else { $a = is_array($p_array); if (!is_array($p_array)) { - throw new Exception("Erreur : exec_sql attend un array"); + throw new Exception(_("Erreur : exec_sql attend un array")); } if (!DEBUG) - $this->ret = pg_query_params($this->db, $p_string, $p_array); + $this->ret =@pg_query_params($this->db, $p_string, $p_array); else - $this->ret = @pg_query_params($this->db, $p_string, $p_array); + $this->ret = pg_query_params($this->db, $p_string, $p_array); } if (!$this->ret) { $str_error = pg_last_error($this->db) . pg_result_error($this->ret);