summaryrefslogtreecommitdiffstats
path: root/apps/user_ldap/lib/User
diff options
context:
space:
mode:
authorArthur Schiwon <blizzz@arthur-schiwon.de>2018-10-29 13:21:02 +0100
committerArthur Schiwon <blizzz@arthur-schiwon.de>2018-10-29 13:21:02 +0100
commitd47e1513bcdba9f8e4ea96e10098e71d35b649a5 (patch)
tree8d15b148b43581a16643f083f2103c40d8b19e45 /apps/user_ldap/lib/User
parent0c89dd2197a13dab06d31675ed98cd3a76aaf44d (diff)
downloadnextcloud-server-d47e1513bcdba9f8e4ea96e10098e71d35b649a5.tar.gz
nextcloud-server-d47e1513bcdba9f8e4ea96e10098e71d35b649a5.zip
remove unneeded empty search attribute values, fixes #12086
Signed-off-by: Arthur Schiwon <blizzz@arthur-schiwon.de>
Diffstat (limited to 'apps/user_ldap/lib/User')
-rw-r--r--apps/user_ldap/lib/User/Manager.php7
1 files changed, 7 insertions, 0 deletions
diff --git a/apps/user_ldap/lib/User/Manager.php b/apps/user_ldap/lib/User/Manager.php
index c48193c7ad9..9f2f3649777 100644
--- a/apps/user_ldap/lib/User/Manager.php
+++ b/apps/user_ldap/lib/User/Manager.php
@@ -197,6 +197,13 @@ class Manager {
);
}
+ // remove possible empty attributes
+ $attributes = array_values(
+ array_filter($attributes, function ($attributeName) {
+ return !empty($attributeName);
+ })
+ );
+
return $attributes;
}