From bfdb865ac982c916d02b3d5003832d0e44b66303 Mon Sep 17 00:00:00 2001 From: Jan Schneider Date: Mon, 13 Sep 2010 14:40:12 +0200 Subject: [PATCH] We need the results. --- framework/Group/lib/Horde/Group/Ldap.php | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/framework/Group/lib/Horde/Group/Ldap.php b/framework/Group/lib/Horde/Group/Ldap.php index 5d41e40f5..03287beae 100644 --- a/framework/Group/lib/Horde/Group/Ldap.php +++ b/framework/Group/lib/Horde/Group/Ldap.php @@ -490,7 +490,8 @@ class Horde_Group_Ldap extends Horde_Group */ public function getGroupParent($dn) { - if (@ldap_explode_dn($dn, 0) === false) { + $result = @ldap_explode_dn($dn, 0); + if ($result === false) { throw new Horde_Group_Exception('Invalid group ID passed (bad DN syntax)'); } @@ -514,7 +515,8 @@ class Horde_Group_Ldap extends Horde_Group */ public function getGroupParentList($dn) { - if (@ldap_explode_dn($dn, 0) === false) { + $result = @ldap_explode_dn($dn, 0); + if ($result === false) { throw new Horde_Group_Exception('Invalid group ID passed (bad DN syntax)'); } -- 2.11.0