[Pkg-owncloud-commits] [owncloud] 10/27: adjust fetchList with a single requested attribute accordingly

David Prévot taffit at moszumanska.debian.org
Wed Oct 28 17:03:05 UTC 2015


This is an automated email from the git hooks/post-receive script.

taffit pushed a commit to annotated tag v8.1.4RC2
in repository owncloud.

commit bb973c2d763fd95be97e6c0240640f7c9e993154
Author: Arthur Schiwon <blizzz at owncloud.com>
Date:   Fri Oct 9 20:07:35 2015 +0200

    adjust fetchList with a single requested attribute accordingly
---
 apps/user_ldap/lib/access.php | 4 +++-
 1 file changed, 3 insertions(+), 1 deletion(-)

diff --git a/apps/user_ldap/lib/access.php b/apps/user_ldap/lib/access.php
index e23f0a0..483ca23 100644
--- a/apps/user_ldap/lib/access.php
+++ b/apps/user_ldap/lib/access.php
@@ -731,7 +731,9 @@ class Access extends LDAPUtility implements user\IUserTools {
 				return $list;
 			} else {
 				$list = array_reduce($list, function($carry, $item) {
-					$carry[] = $item[0];
+					$attribute = array_keys($item)[0];
+					$carry[] = $item[$attribute][0];
+					return $carry;
 				}, array());
 				return array_unique($list, SORT_LOCALE_STRING);
 			}

-- 
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