Unverified Commit 449e171b authored by Côme Chilliet's avatar Côme Chilliet
Browse files

:ambulance: fix(ldap) Use FusionDirectoryLdapError when not in SimplePlugin

issue #6071
Showing with 2 additions and 2 deletions
+2 -2
...@@ -998,7 +998,7 @@ class LDAP ...@@ -998,7 +998,7 @@ class LDAP
logging::debug(DEBUG_LDAP, __LINE__, __FUNCTION__, __FILE__, $na, 'Content'); logging::debug(DEBUG_LDAP, __LINE__, __FUNCTION__, __FILE__, $na, 'Content');
logging::debug(DEBUG_LDAP, __LINE__, __FUNCTION__, __FILE__, $this->get_error(), 'LDAP error'); logging::debug(DEBUG_LDAP, __LINE__, __FUNCTION__, __FILE__, $this->get_error(), 'LDAP error');
throw new SimplePluginLdapError(NULL, $cdn, LDAP_ADD, $this->get_error(), $this->get_errno()); throw new FusionDirectoryLdapError($cdn, LDAP_ADD, $this->get_error(), $this->get_errno());
} }
} }
} }
...@@ -1358,7 +1358,7 @@ class LDAP ...@@ -1358,7 +1358,7 @@ class LDAP
} }
if (!$this->success()) { if (!$this->success()) {
$error = new SimplePluginLdapError(NULL, $dn, $operation, $this->get_error(), $this->get_errno()); $error = new FusionDirectoryLdapError($dn, $operation, $this->get_error(), $this->get_errno());
$error->display(); $error->display();
} }
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment