diff options
author | Arthur Schiwon <blizzz@owncloud.com> | 2015-10-09 20:07:35 +0200 |
---|---|---|
committer | Arthur Schiwon <blizzz@owncloud.com> | 2015-10-09 20:07:35 +0200 |
commit | e3a148584a434fe9748a4164dcddf77a402e0966 (patch) | |
tree | 8770f5d66b2ca71f969e856671b7171d7144ae0d /apps/user_ldap | |
parent | d127b3f0d274547e1806bb33819b9966a6b544cb (diff) | |
download | nextcloud-server-e3a148584a434fe9748a4164dcddf77a402e0966.tar.gz nextcloud-server-e3a148584a434fe9748a4164dcddf77a402e0966.zip |
adjust fetchList with a single requested attribute accordingly
Diffstat (limited to 'apps/user_ldap')
-rw-r--r-- | apps/user_ldap/lib/access.php | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/apps/user_ldap/lib/access.php b/apps/user_ldap/lib/access.php index adfb11da673..c3a15c3ee45 100644 --- a/apps/user_ldap/lib/access.php +++ b/apps/user_ldap/lib/access.php @@ -721,7 +721,9 @@ class Access extends LDAPUtility implements user\IUserTools { return $list; } else { $list = array_reduce($list, function($carry, $item) { - $carry[] = $item[0]; + $attribute = array_keys($item)[0]; + $carry[] = $item[$attribute][0]; + return $carry; }, array()); return array_unique($list, SORT_LOCALE_STRING); } |