summaryrefslogtreecommitdiffstats
path: root/apps/user_ldap/group_ldap.php
diff options
context:
space:
mode:
authorroot <leo@strike.wu.ac.at>2014-02-21 17:09:36 +0100
committerroot <leo@strike.wu.ac.at>2014-02-21 17:09:36 +0100
commit300b1131b47842252395d54ad28b4d6691d7775e (patch)
treedc295e3ea6d71407ea875c397b135e433e6c8496 /apps/user_ldap/group_ldap.php
parentd10f6e94dcc92a2242aae2b2331b6f85da8d8b6c (diff)
downloadnextcloud-server-300b1131b47842252395d54ad28b4d6691d7775e.tar.gz
nextcloud-server-300b1131b47842252395d54ad28b4d6691d7775e.zip
replace spaces with tabs
use true instead of 1
Diffstat (limited to 'apps/user_ldap/group_ldap.php')
-rw-r--r--apps/user_ldap/group_ldap.php10
1 files changed, 5 insertions, 5 deletions
diff --git a/apps/user_ldap/group_ldap.php b/apps/user_ldap/group_ldap.php
index 509f65712fd..cef9ca3c4cf 100644
--- a/apps/user_ldap/group_ldap.php
+++ b/apps/user_ldap/group_ldap.php
@@ -94,8 +94,8 @@ class GROUP_LDAP extends BackendUtility implements \OCP\GroupInterface {
}
$allMembers = array();
if (array_key_exists($dnGroup, $seen)) {
- // avoid loops
- return array();
+ // avoid loops
+ return array();
}
// used extensively in cron job, caching makes sense for nested groups
$cacheKey = '_groupMembers'.$dnGroup;
@@ -107,7 +107,7 @@ class GROUP_LDAP extends BackendUtility implements \OCP\GroupInterface {
$this->access->connection->ldapGroupFilter);
if (is_array($members)) {
foreach ($members as $memberDN) {
- $allMembers[$memberDN] = 1;
+ $allMembers[$memberDN] = 1;
$nestedGroups = $this->access->connection->ldapNestedGroups;
if (!empty($nestedGroups)) {
$subMembers = $this->_groupMembers($memberDN, $seen);
@@ -117,7 +117,7 @@ class GROUP_LDAP extends BackendUtility implements \OCP\GroupInterface {
}
}
}
- $this->access->connection->writeToCache($cacheKey, $allMembers);
+ $this->access->connection->writeToCache($cacheKey, $allMembers);
return $allMembers;
}
@@ -172,7 +172,7 @@ class GROUP_LDAP extends BackendUtility implements \OCP\GroupInterface {
// avoid loops
return array();
}
- $seen[$dn] = 1;
+ $seen[$dn] = true;
$filter = $this->access->combineFilterWithAnd(array(
$this->access->connection->ldapGroupFilter,
$this->access->connection->ldapGroupMemberAssocAttr.'='.$dn