aboutsummaryrefslogtreecommitdiffstats
path: root/apps/user_ldap
diff options
context:
space:
mode:
authorLukas Reschke <lukas@owncloud.com>2014-09-08 16:39:48 +0200
committerLukas Reschke <lukas@owncloud.com>2014-09-08 16:39:48 +0200
commitbca57b4b2856907ae297ca35fc8bdf6ef6567603 (patch)
tree3f33cd7b17324dc614b19cad5c605c236bd16094 /apps/user_ldap
parent0cdfe4f8c29a9b1b044fdc5fbdcf1d052935deb4 (diff)
parent3c9668f6051eaaef3f0f5bbc4ad91a3ff6987496 (diff)
downloadnextcloud-server-bca57b4b2856907ae297ca35fc8bdf6ef6567603.tar.gz
nextcloud-server-bca57b4b2856907ae297ca35fc8bdf6ef6567603.zip
Merge pull request #10890 from owncloud/fix-10888
if only one attribute is requested, the returned array has 0 as key inst...
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;