[Pkg-owncloud-commits] [owncloud] 72/258: if only one attribute is requested, the returned array has 0 as key instead of attribute name. fixes #10888
David Prévot
taffit at moszumanska.debian.org
Sat Oct 11 17:22:22 UTC 2014
This is an automated email from the git hooks/post-receive script.
taffit pushed a commit to branch master
in repository owncloud.
commit 1981d220c5bf7a08b1955d4f48d811e742bca8f8
Author: Arthur Schiwon <blizzz at owncloud.com>
Date: Fri Sep 5 14:05:37 2014 +0200
if only one attribute is requested, the returned array has 0 as key instead of attribute name. fixes #10888
---
apps/user_ldap/lib/wizard.php | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/apps/user_ldap/lib/wizard.php b/apps/user_ldap/lib/wizard.php
index 4118b45..fdf65a3 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;
--
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/pkg-owncloud/owncloud.git
More information about the Pkg-owncloud-commits
mailing list