X-Git-Url: https://delta.frontaccounting.com/gitweb/?a=blobdiff_plain;ds=sidebyside;f=includes%2Fdb%2Fconnect_db.inc;h=dc2dd027ede11c4aadcb1acafbed14be6c8b30fa;hb=8864b1ec0fd3321e510511ef22614bc36845540e;hp=fa57b678fc4d530e3f98961a96725ee93cb74487;hpb=4cf1c3dbb9ae74e0c47dda456f7ac97c7659b3fa;p=fa-stable.git
diff --git a/includes/db/connect_db.inc b/includes/db/connect_db.inc
index fa57b678..dc2dd027 100644
--- a/includes/db/connect_db.inc
+++ b/includes/db/connect_db.inc
@@ -26,8 +26,10 @@ $db_duplicate_error_code = 1062;
function db_query($sql, $err_msg=null)
{
- global $db, $show_sql, $sql_trail, $select_trail;
-
+ global $db, $show_sql, $sql_trail, $select_trail, $go_debug;
+
+ if (!$err_msg && $go_debug)
+ $err_msg = "Debug mode error";
//echo "
$sql
";
if ($show_sql)
{