diff options
author | Vincent Petry <pvince81@owncloud.com> | 2014-05-05 14:08:45 +0200 |
---|---|---|
committer | Vincent Petry <pvince81@owncloud.com> | 2014-05-05 14:08:45 +0200 |
commit | 1a454f61ed2211e8a5cf11f1292c53a4d6801dd5 (patch) | |
tree | 3da9c5f5b28959369a0b9a0c91530643ae02ed60 /lib/private/group.php | |
parent | 341fcdc37a74b630ef7d47b5f0b336622c072ddc (diff) | |
parent | 837a02184b38f62b87993a4da2afbd9daefedd98 (diff) | |
download | nextcloud-server-1a454f61ed2211e8a5cf11f1292c53a4d6801dd5.tar.gz nextcloud-server-1a454f61ed2211e8a5cf11f1292c53a4d6801dd5.zip |
Merge pull request #8386 from owncloud/fix_6946_master
Fix 6946 master
Diffstat (limited to 'lib/private/group.php')
-rw-r--r-- | lib/private/group.php | 12 |
1 files changed, 1 insertions, 11 deletions
diff --git a/lib/private/group.php b/lib/private/group.php index d9f430f833b..ea6384bae3e 100644 --- a/lib/private/group.php +++ b/lib/private/group.php @@ -274,17 +274,7 @@ class OC_Group { * @returns array with display names (value) and user ids(key) */ public static function displayNamesInGroup($gid, $search = '', $limit = -1, $offset = 0) { - $group = self::getManager()->get($gid); - if ($group) { - $users = $group->searchDisplayName($search, $limit, $offset); - $displayNames = array(); - foreach ($users as $user) { - $displayNames[$user->getUID()] = $user->getDisplayName(); - } - return $displayNames; - } else { - return array(); - } + return self::getManager()->displayNamesInGroup($gid, $search, $limit, $offset); } /** |