From 449e171b34060cfcb0dac9db4e196fd1f9d5f97b Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?C=C3=B4me=20Chilliet?= <come.chilliet@fusiondirectory.org> Date: Wed, 1 Jul 2020 11:33:22 +0200 Subject: [PATCH] :ambulance: fix(ldap) Use FusionDirectoryLdapError when not in SimplePlugin issue #6071 --- include/class_ldap.inc | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/include/class_ldap.inc b/include/class_ldap.inc index f259550e8..d7bd98c2d 100644 --- a/include/class_ldap.inc +++ b/include/class_ldap.inc @@ -998,7 +998,7 @@ class LDAP logging::debug(DEBUG_LDAP, __LINE__, __FUNCTION__, __FILE__, $na, 'Content'); 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 } 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(); } -- GitLab