summaryrefslogtreecommitdiff
path: root/program/lib/Roundcube/rcube_ldap.php
diff options
context:
space:
mode:
authorAleksander Machniak <alec@alec.pl>2013-06-19 09:11:06 +0200
committerAleksander Machniak <alec@alec.pl>2013-06-19 09:11:06 +0200
commitfae90da582ba7ac8ce6c0fdf753bbc6c7f7cbf9f (patch)
treed7eeba00ae334a95ed2d500ea26ecd471b21603f /program/lib/Roundcube/rcube_ldap.php
parent4e12fd5c82b9e299a9eb91bb6e0bb09c47090a16 (diff)
Fix debug setting in ldap classes
Diffstat (limited to 'program/lib/Roundcube/rcube_ldap.php')
-rw-r--r--program/lib/Roundcube/rcube_ldap.php8
1 files changed, 6 insertions, 2 deletions
diff --git a/program/lib/Roundcube/rcube_ldap.php b/program/lib/Roundcube/rcube_ldap.php
index ef7e1b32d..36f766d84 100644
--- a/program/lib/Roundcube/rcube_ldap.php
+++ b/program/lib/Roundcube/rcube_ldap.php
@@ -205,8 +205,9 @@ class rcube_ldap extends rcube_addressbook
}
// initialize ldap wrapper object
- $this->ldap = new rcube_ldap_generic($this->prop, true);
+ $this->ldap = new rcube_ldap_generic($this->prop);
$this->ldap->set_cache($this->cache);
+ $this->ldap->set_debug($this->debug);
$this->_connect();
}
@@ -1459,11 +1460,14 @@ class rcube_ldap extends rcube_addressbook
* Activate/deactivate debug mode
*
* @param boolean $dbg True if LDAP commands should be logged
- * @access public
*/
function set_debug($dbg = true)
{
$this->debug = $dbg;
+
+ if ($this->ldap) {
+ $this->ldap->set_debug($dbg);
+ }
}