We need the results.
authorJan Schneider <jan@horde.org>
Mon, 13 Sep 2010 12:40:12 +0000 (14:40 +0200)
committerJan Schneider <jan@horde.org>
Mon, 13 Sep 2010 13:35:10 +0000 (15:35 +0200)
framework/Group/lib/Horde/Group/Ldap.php

index 5d41e40..03287be 100644 (file)
@@ -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)');
         }