diff options
author | Stephan Peijnik <speijnik@anexia-it.com> | 2014-07-15 13:15:38 +0400 |
---|---|---|
committer | Stephan Peijnik <speijnik@anexia-it.com> | 2014-07-15 13:15:38 +0400 |
commit | b51d54a84cc91e5779ddceede3ff7ea4287c4aa9 (patch) | |
tree | 7f297bb26a6194d4738ec1ba436ca71d606d7a75 /lib/private/group | |
parent | a4a0ebf9db2ed2cd845d92bb27d99ba412fb7d39 (diff) |
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@anexia-it.com>
Diffstat (limited to 'lib/private/group')
-rw-r--r-- | lib/private/group/metadata.php | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/lib/private/group/metadata.php b/lib/private/group/metadata.php index 2d8ed37a28f..687a735347c 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; } } } |