From 31f197d78fc3c5a2cd03542e07f1dda69f15a630 Mon Sep 17 00:00:00 2001 From: Andreas Gohr <andi@splitbrain.org> Date: Thu, 15 Oct 2009 22:27:18 +0200 Subject: [PATCH] Support for even more debugging in mysql backend Ignore-this: 47b7640fefc8a7f15f39d4deb2e7fb10 darcs-hash:20091015202718-7ad00-44d90ae0cc61d2433f15865715bee68273f04232.gz --- inc/auth/mysql.class.php | 4 ++++ 1 file changed, 4 insertions(+) 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); -- GitLab