Fix logMessage() call, silence set_option().
authorJan Schneider <jan@horde.org>
Thu, 24 Jun 2010 13:22:28 +0000 (15:22 +0200)
committerJan Schneider <jan@horde.org>
Thu, 24 Jun 2010 13:22:28 +0000 (15:22 +0200)
framework/Group/lib/Horde/Group/Ldap.php

index 36913c6..a1c04e9 100644 (file)
@@ -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. */