]> source.dussan.org Git - nextcloud-server.git/commitdiff
if only one attribute is requested, the returned array has 0 as key instead of attrib...
authorArthur Schiwon <blizzz@owncloud.com>
Fri, 5 Sep 2014 12:05:37 +0000 (14:05 +0200)
committerArthur Schiwon <blizzz@owncloud.com>
Fri, 5 Sep 2014 12:05:37 +0000 (14:05 +0200)
apps/user_ldap/lib/wizard.php

index dceb2206dbe02bf69c8dad523f52322a91e2ff94..7f0d32ead68a3707782ebb992e8f6c8b32ebe6d4 100644 (file)
@@ -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;