From 2dc8fd48cdbf34a5ed3ce0e4c667859af291a5ba Mon Sep 17 00:00:00 2001 From: Jan Schneider Date: Thu, 24 Jun 2010 15:22:28 +0200 Subject: [PATCH] Fix logMessage() call, silence set_option(). --- framework/Group/lib/Horde/Group/Ldap.php | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/framework/Group/lib/Horde/Group/Ldap.php b/framework/Group/lib/Horde/Group/Ldap.php index 36913c6a6..a1c04e942 100644 --- a/framework/Group/lib/Horde/Group/Ldap.php +++ b/framework/Group/lib/Horde/Group/Ldap.php @@ -72,14 +72,14 @@ class Horde_Group_Ldap extends Horde_Group throw new Horde_Group_Exception('Could not reach the LDAP server'); } - if (!ldap_set_option($this->_ds, LDAP_OPT_PROTOCOL_VERSION, - $this->_params['version'])) { + if (!@ldap_set_option($this->_ds, LDAP_OPT_PROTOCOL_VERSION, + $this->_params['version'])) { Horde::logMessage( sprintf('Set LDAP protocol version to %d failed: [%d] %s', $this->_params['version'], @ldap_errno($this->_ds), @ldap_error($this->_ds)), - __FILE__, __LINE__)); + 'ERR'); } /* Start TLS if we're using it. */ -- 2.11.0