Code Duplication    Length = 4-4 lines in 2 locations

apps/user_ldap/lib/Group_LDAP.php 2 locations

@@ 104-107 (lines=4) @@
101
102
		$groupDN = $this->access->groupname2dn($gid);
103
		// just in case
104
		if(!$groupDN || !$userDN) {
105
			$this->access->connection->writeToCache($cacheKey, false);
106
			return false;
107
		}
108
109
		//check primary group first
110
		if($gid === $this->getUserPrimaryGroup($userDN)) {
@@ 110-113 (lines=4) @@
107
		}
108
109
		//check primary group first
110
		if($gid === $this->getUserPrimaryGroup($userDN)) {
111
			$this->access->connection->writeToCache($cacheKey, true);
112
			return true;
113
		}
114
115
		//usually, LDAP attributes are said to be case insensitive. But there are exceptions of course.
116
		$members = $this->_groupMembers($groupDN);