noalyss-commit
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Noalyss-commit] [noalyss] 82/107: DatabaseCore fix silent when not debu


From: Dany De Bontridder
Subject: [Noalyss-commit] [noalyss] 82/107: DatabaseCore fix silent when not debug
Date: Mon, 26 Aug 2019 10:32:06 -0400 (EDT)

sparkyx pushed a commit to branch master
in repository noalyss.

commit c2d6876ac62b2db0f07ae4e5ed1fee3ab85c1659
Author: Dany De Bontridder <address@hidden>
Date:   Thu Aug 8 16:40:14 2019 +0200

    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 ff42ea6..dca3358 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);



reply via email to

[Prev in Thread] Current Thread [Next in Thread]