From 5b2fb157a550cc70231e6ccbf6bff39a66ac7469 Mon Sep 17 00:00:00 2001 From: Ben Klang Date: Wed, 3 Nov 2010 14:28:15 -0400 Subject: [PATCH] $group is a string at this point --- framework/Group/lib/Horde/Group/Ldap.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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(); } /** -- 2.11.0