do not show tls warnings

This commit is contained in:
Roland Gruber 2003-08-16 09:44:10 +00:00
parent 5d11bfe9eb
commit 92a42b421b
1 changed files with 1 additions and 1 deletions

View File

@ -97,7 +97,7 @@ class Ldap{
// use LDAPv3
ldap_set_option($this->server, LDAP_OPT_PROTOCOL_VERSION, 3);
// start TLS if possible
if (function_exists('ldap_start_tls')) ldap_start_tls($this->server);
if (function_exists('ldap_start_tls')) @ldap_start_tls($this->server);
$bind = @ldap_bind($this->server, $user, $passwd);
if ($bind) {
// return server handle