code style

This commit is contained in:
Arthur Schiwon 2012-07-25 13:09:51 +02:00
parent a6c5309e16
commit 92f447ca50
1 changed files with 3 additions and 2 deletions

View File

@ -109,7 +109,8 @@ class GROUP_LDAP extends lib\Access implements \OCP\GroupInterface {
//uniqueMember takes DN, memberuid the uid, so we need to distinguish //uniqueMember takes DN, memberuid the uid, so we need to distinguish
if((strtolower($this->connection->ldapGroupMemberAssocAttr) == 'uniquemember') if((strtolower($this->connection->ldapGroupMemberAssocAttr) == 'uniquemember')
|| (strtolower($this->connection->ldapGroupMemberAssocAttr) == 'member')) { || (strtolower($this->connection->ldapGroupMemberAssocAttr) == 'member')
) {
$uid = $userDN; $uid = $userDN;
} else if(strtolower($this->connection->ldapGroupMemberAssocAttr) == 'memberuid') { } else if(strtolower($this->connection->ldapGroupMemberAssocAttr) == 'memberuid') {
$result = $this->readAttribute($userDN, 'uid'); $result = $this->readAttribute($userDN, 'uid');
@ -165,7 +166,7 @@ class GROUP_LDAP extends lib\Access implements \OCP\GroupInterface {
$result[] = $this->dn2username($ldap_users[0]); $result[] = $this->dn2username($ldap_users[0]);
continue; continue;
} else { } else {
if($ocname = $this->dn2username($member)){ if($ocname = $this->dn2username($member)) {
$result[] = $ocname; $result[] = $ocname;
} }
} }