From bd7044fa9f8a7c84b0d79e36fff9a76e371cbd16 Mon Sep 17 00:00:00 2001 From: hickert Date: Mon, 15 Mar 2010 10:50:19 +0000 Subject: [PATCH] Readded @ prefixes to avoid warning or error messages git-svn-id: https://oss.gonicus.de/repositories/gosa/branches/2.6@16525 594d385d-05f5-0310-b6e9-bd551577e9d8 --- gosa-core/setup/class_setupStep_Ldap.inc | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/gosa-core/setup/class_setupStep_Ldap.inc b/gosa-core/setup/class_setupStep_Ldap.inc index a57238e09..eca54c38a 100644 --- a/gosa-core/setup/class_setupStep_Ldap.inc +++ b/gosa-core/setup/class_setupStep_Ldap.inc @@ -95,16 +95,16 @@ class Step_Ldap extends setup_step $this->connect_id = FALSE; $this->bind_id = FALSE; - ldap_set_option(NULL, LDAP_OPT_DEBUG_LEVEL, 7); + @ldap_set_option(NULL, LDAP_OPT_DEBUG_LEVEL, 7); $this->connect_id = ldap_connect($this->connection); if($this->tls){ - if(ldap_set_option($this->connect_id, LDAP_OPT_REFERRALS, 0)) - if(ldap_start_tls($this->connect_id)) - $this->bind_id = ldap_bind($this->connect_id, $this->admin, $this->password); - ldap_set_option($this->connect_id, LDAP_OPT_PROTOCOL_VERSION, 3); + if(@ldap_set_option($this->connect_id, LDAP_OPT_REFERRALS, 0)) + if(@ldap_start_tls($this->connect_id)) + $this->bind_id = @ldap_bind($this->connect_id, $this->admin, $this->password); + @ldap_set_option($this->connect_id, LDAP_OPT_PROTOCOL_VERSION, 3); }else{ - ldap_set_option($this->connect_id, LDAP_OPT_PROTOCOL_VERSION, 3); + @ldap_set_option($this->connect_id, LDAP_OPT_PROTOCOL_VERSION, 3); $this->bind_id = @ldap_bind($this->connect_id, $this->admin, $this->password); } -- 2.30.2