[Pkg-owncloud-commits] [owncloud] 16/59: Fix indentation.
David Prévot
taffit at moszumanska.debian.org
Fri Jul 18 16:19:26 UTC 2014
This is an automated email from the git hooks/post-receive script.
taffit pushed a commit to branch master
in repository owncloud.
commit 75d45c4e49608fef70872e0e558246147f5cda72
Author: Stephan Peijnik <speijnik at anexia-it.com>
Date: Fri Jul 11 11:30:52 2014 +0200
Fix indentation.
Signed-off-by: Stephan Peijnik <speijnik at anexia-it.com>
---
lib/private/group/metadata.php | 22 +++++++++++-----------
settings/users.php | 14 +++++++-------
2 files changed, 18 insertions(+), 18 deletions(-)
diff --git a/lib/private/group/metadata.php b/lib/private/group/metadata.php
index 20f26d3..b22fde3 100644
--- a/lib/private/group/metadata.php
+++ b/lib/private/group/metadata.php
@@ -168,19 +168,19 @@ class MetaData {
if($this->isAdmin) {
return $this->groupManager->search($search);
} else {
- $groupIds = \OC_SubAdmin::getSubAdminsGroups($this->user);
+ $groupIds = \OC_SubAdmin::getSubAdminsGroups($this->user);
- /* \OC_SubAdmin::getSubAdminsGroups() returns an array of GIDs, but this
- * method is expected to return an array with the GIDs as keys and group objects as
- * values, so we need to convert this information.
- */
+ /* \OC_SubAdmin::getSubAdminsGroups() returns an array of GIDs, but this
+ * method is expected to return an array with the GIDs as keys and group objects as
+ * values, so we need to convert this information.
+ */
$this->groups = array();
- foreach($groupIds as $gid) {
- $grp = $this->groupManager->get($gid);
- if (!empty($grp)) {
- $this->groups[$gid] = $grp;
- }
- }
+ foreach($groupIds as $gid) {
+ $grp = $this->groupManager->get($gid);
+ if (!empty($grp)) {
+ $this->groups[$gid] = $grp;
+ }
+ }
}
}
}
diff --git a/settings/users.php b/settings/users.php
index 9a225d5..47ca529 100644
--- a/settings/users.php
+++ b/settings/users.php
@@ -35,13 +35,13 @@ if($isAdmin) {
$accessibleUsers = OC_User::getDisplayNames('', 30);
$subadmins = OC_SubAdmin::getAllSubAdmins();
}else{
- /* Retrieve group IDs from $groups array, so we can pass that information into OC_Group::displayNamesInGroups() */
- $gids = array();
- foreach($groups as $grp) {
- if (isset($grp['id'])) {
- $gids[] = $grp['id'];
- }
- }
+ /* Retrieve group IDs from $groups array, so we can pass that information into OC_Group::displayNamesInGroups() */
+ $gids = array();
+ foreach($groups as $grp) {
+ if (isset($grp['id'])) {
+ $gids[] = $grp['id'];
+ }
+ }
$accessibleUsers = OC_Group::displayNamesInGroups($gids, '', 30);
$subadmins = false;
}
--
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/pkg-owncloud/owncloud.git
More information about the Pkg-owncloud-commits
mailing list