From 57d789c4b2030312134e5b3e04176ee2ccfd7ffa Mon Sep 17 00:00:00 2001 From: Benoit Mortier <benoit.mortier@opensides.be> Date: Sat, 31 Dec 2016 15:17:09 +0100 Subject: [PATCH] Fixes: #5098 Exception should be reorganized Adapted to the new exception class Signed-off-by: Benoit Mortier <benoit.mortier@opensides.be> --- include/class_objects.inc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/include/class_objects.inc b/include/class_objects.inc index e4dc00620..03c94d7c8 100644 --- a/include/class_objects.inc +++ b/include/class_objects.inc @@ -127,7 +127,7 @@ class objects $ldap->cd($ou); $ldap->search($filter, $search_attrs); if (!$ldap->success()) { - throw new Exception($ldap->get_error()); + throw new LDAPFailureException($ldap->get_error()); } return $ldap; } -- GitLab