Skip to content
Snippets Groups Projects
Commit 3c9668f6 authored by Arthur Schiwon's avatar Arthur Schiwon
Browse files

if only one attribute is requested, the returned array has 0 as key instead of...

if only one attribute is requested, the returned array has 0 as key instead of attribute name. fixes #10888
parent 5913a694
No related branches found
No related tags found
No related merge requests found
...@@ -379,7 +379,7 @@ class Wizard extends LDAPUtility { ...@@ -379,7 +379,7 @@ class Wizard extends LDAPUtility {
do { do {
$result = $this->access->searchGroups($filter, array('cn'), $limit, $offset); $result = $this->access->searchGroups($filter, array('cn'), $limit, $offset);
foreach($result as $item) { foreach($result as $item) {
$groupNames[] = $item['cn']; $groupNames[] = $item[0];
$groupEntries[] = $item; $groupEntries[] = $item;
} }
$offset += $limit; $offset += $limit;
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment