diff options
author | Andreas Gohr <andi@splitbrain.org> | 2009-10-15 22:27:18 +0200 |
---|---|---|
committer | Andreas Gohr <andi@splitbrain.org> | 2009-10-15 22:27:18 +0200 |
commit | 31f197d78fc3c5a2cd03542e07f1dda69f15a630 (patch) | |
tree | 9c43dcb82c5161a6955ff7029b0fb4e069faaaea | |
parent | de12e55159a0c57cff14f2b1d89b98943c9fcb80 (diff) | |
download | rpg-31f197d78fc3c5a2cd03542e07f1dda69f15a630.tar.gz rpg-31f197d78fc3c5a2cd03542e07f1dda69f15a630.tar.bz2 |
Support for even more debugging in mysql backend
Ignore-this: 47b7640fefc8a7f15f39d4deb2e7fb10
darcs-hash:20091015202718-7ad00-44d90ae0cc61d2433f15865715bee68273f04232.gz
-rw-r--r-- | inc/auth/mysql.class.php | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/inc/auth/mysql.class.php b/inc/auth/mysql.class.php index 3d5af3640..26cfb85d9 100644 --- a/inc/auth/mysql.class.php +++ b/inc/auth/mysql.class.php @@ -772,6 +772,10 @@ class auth_mysql extends auth_basic { * @author Matthias Grimm <matthiasgrimm@users.sourceforge.net> */ function _queryDB($query) { + if($this->cnf['debug'] >= 2){ + msg('MySQL query: '.hsc($query),0,__LINE__,__FILE__); + } + $resultarray = array(); if ($this->dbcon) { $result = @mysql_query($query,$this->dbcon); |