From: Jan Schneider Date: Thu, 24 Jun 2010 13:22:28 +0000 (+0200) Subject: Fix logMessage() call, silence set_option(). X-Git-Url: https://git.internetallee.de/?a=commitdiff_plain;h=2dc8fd48cdbf34a5ed3ce0e4c667859af291a5ba;p=horde.git Fix logMessage() call, silence set_option(). --- 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. */