aboutsummaryrefslogtreecommitdiff
path: root/src/db.php
diff options
context:
space:
mode:
authorcassiopc <cassiopc@gmail.com>2013-08-29 12:49:27 +0000
committercassiopc <cassiopc@gmail.com>2013-08-29 12:49:27 +0000
commit35df6e3bb203b881f8ebe81ce4e7b59f63dc5e56 (patch)
tree70ab6bec6f0f98ec6f09cb889c40de12b8c08a35 /src/db.php
parentaa7f9e02b8accf8867ea4c316e5e16e5d6902198 (diff)
downloadboca-35df6e3bb203b881f8ebe81ce4e7b59f63dc5e56.tar.gz
boca-35df6e3bb203b881f8ebe81ce4e7b59f63dc5e56.zip
fixed disable logins bug
Diffstat (limited to 'src/db.php')
-rw-r--r--src/db.php5
1 files changed, 3 insertions, 2 deletions
diff --git a/src/db.php b/src/db.php
index 6d437dc..8ccda12 100644
--- a/src/db.php
+++ b/src/db.php
@@ -177,7 +177,7 @@ function DBClose($c) {
//$sql eh a instrucao sql
//$txt eh um pequeno texto descrevendo o que esta sendo feito no sql
function DBExecNonStop($conn,$sql,$txt='') {
- if($txt=='') $txt='unknown at '.getFunctionName();
+ if($txt=='') $txt='unknown at '. getFunctionName();
$result = @DB_pg_exec ($conn, $sql);
if (!$result) {
LOGLevel("Unable to exec SQL in the database ($txt). " .
@@ -191,7 +191,8 @@ function DBExecNonStop($conn,$sql,$txt='') {
//$sql eh a instrucao sql
//$txt eh um pequeno texto descrevendo o que esta sendo feito no sql
function DBExec($conn,$sql,$txt='') {
- if($txt=='') $txt='unknown at '.getFunctionName();
+ if($txt=='') $txt='unknown at '. getFunctionName();
+ LOGLevel("DBExec: " . $sql, 3, false);
$result = DB_pg_exec ($conn, $sql);
if (!$result) {
LOGError("Unable to exec SQL in the database ($txt). " .