From: Jan Schneider Date: Mon, 13 Sep 2010 12:40:12 +0000 (+0200) Subject: We need the results. X-Git-Url: https://git.internetallee.de/?a=commitdiff_plain;h=bfdb865ac982c916d02b3d5003832d0e44b66303;p=horde.git We need the results. --- 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)'); }