diff options
author | Arthur Schiwon <blizzz@arthur-schiwon.de> | 2018-10-29 13:21:02 +0100 |
---|---|---|
committer | Arthur Schiwon <blizzz@arthur-schiwon.de> | 2018-10-29 17:29:32 +0100 |
commit | c4df29afb0fcc2611b8d0b48b2d8b3994ee72d28 (patch) | |
tree | 4424ee15b6965c1b613cbe1e49068644573949ac /apps/user_ldap/lib/User | |
parent | 061846c7d06ff390673953ac0703e04255bb8a66 (diff) | |
download | nextcloud-server-c4df29afb0fcc2611b8d0b48b2d8b3994ee72d28.tar.gz nextcloud-server-c4df29afb0fcc2611b8d0b48b2d8b3994ee72d28.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.php | 7 |
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 4a770102a76..63520072578 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; } |