[Pkg-owncloud-commits] [owncloud] 20/59: Updated code to reflect changes introduced to \OC\Group\MetaData.
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 b51d54a84cc91e5779ddceede3ff7ea4287c4aa9
Author: Stephan Peijnik <speijnik at anexia-it.com>
Date: Tue Jul 15 11:15:38 2014 +0200
Updated code to reflect changes introduced to \OC\Group\MetaData.
Now that fetchGroups() does not exist anymore and getGroups() is called
directory, the 'groups' property does not exist anymore.
Instead, we now generate that array on the fly and return it from getGroups.
Signed-off-by: Stephan Peijnik <speijnik at anexia-it.com>
---
lib/private/group/metadata.php | 6 ++++--
1 file changed, 4 insertions(+), 2 deletions(-)
diff --git a/lib/private/group/metadata.php b/lib/private/group/metadata.php
index 2d8ed37..687a735 100644
--- a/lib/private/group/metadata.php
+++ b/lib/private/group/metadata.php
@@ -174,13 +174,15 @@ class MetaData {
* 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();
+ $groups = array();
foreach($groupIds as $gid) {
$group = $this->groupManager->get($gid);
if (!is_null($group)) {
- $this->groups[$gid] = $group;
+ $groups[$gid] = $group;
}
}
+
+ return $groups;
}
}
}
--
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