summaryrefslogtreecommitdiff
path: root/plugins/kolab_auth
diff options
context:
space:
mode:
authorAleksander Machniak <machniak@kolabsys.com>2013-10-07 10:38:36 (GMT)
committerAleksander Machniak <machniak@kolabsys.com>2013-10-07 10:38:36 (GMT)
commitd5af672f6b9bc237f72062469bf435034b2f5824 (patch)
treebc6aa18ea19e8fbcceacbffe7be6a7a99552e8e0 /plugins/kolab_auth
parent0cbce32636b0b6d9a7b0f510c6fee8d77f14f002 (diff)
downloadroundcubemail-plugins-kolab-d5af672f6b9bc237f72062469bf435034b2f5824.tar.gz
Fix sql debugging in audit mode
Diffstat (limited to 'plugins/kolab_auth')
-rw-r--r--plugins/kolab_auth/kolab_auth.php9
1 files changed, 8 insertions, 1 deletions
diff --git a/plugins/kolab_auth/kolab_auth.php b/plugins/kolab_auth/kolab_auth.php
index 26b2425..5e924d4 100644
--- a/plugins/kolab_auth/kolab_auth.php
+++ b/plugins/kolab_auth/kolab_auth.php
@@ -66,11 +66,18 @@ class kolab_auth extends rcube_plugin
$rcmail->config->set('smtp_log', true);
$rcmail->config->set('log_logins', true);
$rcmail->config->set('log_session', true);
- $rcmail->config->set('sql_debug', true);
$rcmail->config->set('memcache_debug', true);
$rcmail->config->set('imap_debug', true);
$rcmail->config->set('ldap_debug', true);
$rcmail->config->set('smtp_debug', true);
+ $rcmail->config->set('sql_debug', true);
+
+ // SQL debug need to be set directly on DB object
+ // setting config variable will not work here because
+ // the object is already initialized/configured
+ if ($db = $rcmail->get_dbh()) {
+ $db->set_debug(true);
+ }
}
}