diff options
author | Lukas Reschke <lukas@owncloud.com> | 2014-09-08 16:39:48 +0200 |
---|---|---|
committer | Lukas Reschke <lukas@owncloud.com> | 2014-09-08 16:39:48 +0200 |
commit | bca57b4b2856907ae297ca35fc8bdf6ef6567603 (patch) | |
tree | 3f33cd7b17324dc614b19cad5c605c236bd16094 /apps/user_ldap | |
parent | 0cdfe4f8c29a9b1b044fdc5fbdcf1d052935deb4 (diff) | |
parent | 3c9668f6051eaaef3f0f5bbc4ad91a3ff6987496 (diff) | |
download | nextcloud-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.php | 2 |
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; |