Code Duplication    Length = 4-4 lines in 2 locations

apps/user_ldap/lib/Group_LDAP.php 2 locations

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