From 35df6e3bb203b881f8ebe81ce4e7b59f63dc5e56 Mon Sep 17 00:00:00 2001 From: cassiopc Date: Thu, 29 Aug 2013 14:49:27 +0200 Subject: fixed disable logins bug --- src/db.php | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) (limited to 'src/db.php') 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). " . -- cgit v1.2.3