[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);
- [Noalyss-commit] [noalyss] 38/107: load_all must always return an array, (continued)
- [Noalyss-commit] [noalyss] 38/107: load_all must always return an array, Dany De Bontridder, 2019/08/26
- [Noalyss-commit] [noalyss] 67/107: SQL : add constraint for payment_method, Dany De Bontridder, 2019/08/26
- [Noalyss-commit] [noalyss] 44/107: fixup! fixup! Code cleaning : split database into database (for noalyss) and databasecore , with the functions, Dany De Bontridder, 2019/08/26
- [Noalyss-commit] [noalyss] 36/107: Bug : card cannot use a attribute of the type "card", reason : the query was wrong and there were a confusion between this->name and this->id in "get_js_attr()", Dany De Bontridder, 2019/08/26
- [Noalyss-commit] [noalyss] 47/107: Improve doxygen, Dany De Bontridder, 2019/08/26
- [Noalyss-commit] [noalyss] 51/107: Code Cleaning split sendmail between sendmail_core (not related to noalyss) and sendmail which is used by noalyss, Dany De Bontridder, 2019/08/26
- [Noalyss-commit] [noalyss] 54/107: Merge branch 'dev7109', Dany De Bontridder, 2019/08/26
- [Noalyss-commit] [noalyss] 59/107: #0001729: Preference : ne plus recharger la page, Dany De Bontridder, 2019/08/26
- [Noalyss-commit] [noalyss] 85/107: Cosmetic : Icon_Trash in Todo_List, Dany De Bontridder, 2019/08/26
- [Noalyss-commit] [noalyss] 80/107: translation, Dany De Bontridder, 2019/08/26
- [Noalyss-commit] [noalyss] 82/107: DatabaseCore fix silent when not debug,
Dany De Bontridder <=
- [Noalyss-commit] [noalyss] 72/107: Improve message progress bar + translation, Dany De Bontridder, 2019/08/26
- [Noalyss-commit] [noalyss] 94/107: Bug : Database::fetch_all returns an array or FALSE, because of pg_fetch_all, the version PHP7 cannot use anymore a boolean with count()., Dany De Bontridder, 2019/08/26
- [Noalyss-commit] [noalyss] 63/107: remove background color, Dany De Bontridder, 2019/08/26
- [Noalyss-commit] [noalyss] 66/107: Code cleaning : rename table mod_payment to payment_method, Dany De Bontridder, 2019/08/26
- [Noalyss-commit] [noalyss] 53/107: Select_Box new Object, Dany De Bontridder, 2019/08/26
- [Noalyss-commit] [noalyss] 55/107: Merge branch 'master' of gitlab.noalyss.eu:noalyss/noalyss, Dany De Bontridder, 2019/08/26
- [Noalyss-commit] [noalyss] 57/107: PDF_Core : code cleaning, Dany De Bontridder, 2019/08/26
- [Noalyss-commit] [noalyss] 71/107: Select_Box add a search, Dany De Bontridder, 2019/08/26
- [Noalyss-commit] [noalyss] 77/107: Security : replace direct use of $_GET, Dany De Bontridder, 2019/08/26
- [Noalyss-commit] [noalyss] 45/107: Replace PHPCOMPTA by NOALYSS, Dany De Bontridder, 2019/08/26