$group is a string at this point
authorBen Klang <ben@alkaloid.net>
Wed, 3 Nov 2010 18:28:15 +0000 (14:28 -0400)
committerBen Klang <ben@alkaloid.net>
Wed, 3 Nov 2010 18:28:15 +0000 (14:28 -0400)
framework/Group/lib/Horde/Group/Ldap.php

index 486229d..44a93ad 100644 (file)
@@ -355,11 +355,11 @@ class Horde_Group_Ldap extends Horde_Group
     {
         try {
             $ldapGroup = $this->getGroup($group);
+            // If we're still here the group exists.
+            return true;
         } catch (Horde_Exception_NotFound $e) {
             return false;
         }
-
-        return $ldapGroup->getName() == $group->getName();
     }
 
     /**