From: Ben Klang Date: Wed, 3 Nov 2010 18:28:15 +0000 (-0400) Subject: $group is a string at this point X-Git-Url: https://git.internetallee.de/?a=commitdiff_plain;h=5b2fb157a550cc70231e6ccbf6bff39a66ac7469;p=horde.git $group is a string at this point --- diff --git a/framework/Group/lib/Horde/Group/Ldap.php b/framework/Group/lib/Horde/Group/Ldap.php index 486229dc8..44a93ad23 100644 --- a/framework/Group/lib/Horde/Group/Ldap.php +++ b/framework/Group/lib/Horde/Group/Ldap.php @@ -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(); } /**