Skip to content
Snippets Groups Projects
Commit 284258cc authored by Aleksander Machniak's avatar Aleksander Machniak
Browse files

Remove unused variable, remove @ on ldap_add(), this may print useful warnings...

Remove unused variable, remove @ on ldap_add(), this may print useful warnings that are not related to ldap connection
parent e049b764
No related branches found
No related tags found
No related merge requests found
Loading
Loading
@@ -206,7 +206,7 @@ class Net_LDAP3
 
$this->_debug("C: Add $entry_dn: " . json_encode($attributes));
 
if (($add_result = @ldap_add($this->conn, $entry_dn, $attributes)) == false) {
if (!ldap_add($this->conn, $entry_dn, $attributes)) {
$this->_debug("S: " . ldap_error($this->conn));
$this->_warning("LDAP: Adding entry $entry_dn failed. " . ldap_error($this->conn));
 
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment