aboutsummaryrefslogtreecommitdiffstats
path: root/apps/user_ldap
diff options
context:
space:
mode:
authorArthur Schiwon <blizzz@owncloud.com>2014-09-05 14:05:37 +0200
committerArthur Schiwon <blizzz@owncloud.com>2014-09-05 14:05:37 +0200
commit3c9668f6051eaaef3f0f5bbc4ad91a3ff6987496 (patch)
treedfaec76c057ddcb22108760d514b402f45bd6cbb /apps/user_ldap
parent5913a694de0e98e918d9d08340ac88c9f1eab937 (diff)
downloadnextcloud-server-3c9668f6051eaaef3f0f5bbc4ad91a3ff6987496.tar.gz
nextcloud-server-3c9668f6051eaaef3f0f5bbc4ad91a3ff6987496.zip
if only one attribute is requested, the returned array has 0 as key instead of attribute name. fixes #10888
Diffstat (limited to 'apps/user_ldap')
-rw-r--r--apps/user_ldap/lib/wizard.php2
1 files changed, 1 insertions, 1 deletions
diff --git a/apps/user_ldap/lib/wizard.php b/apps/user_ldap/lib/wizard.php
index dceb2206dbe..7f0d32ead68 100644
--- a/apps/user_ldap/lib/wizard.php
+++ b/apps/user_ldap/lib/wizard.php
@@ -379,7 +379,7 @@ class Wizard extends LDAPUtility {
do {
$result = $this->access->searchGroups($filter, array('cn'), $limit, $offset);
foreach($result as $item) {
- $groupNames[] = $item['cn'];
+ $groupNames[] = $item[0];
$groupEntries[] = $item;
}
$offset += $limit;