From d47e1513bcdba9f8e4ea96e10098e71d35b649a5 Mon Sep 17 00:00:00 2001 From: Arthur Schiwon Date: Mon, 29 Oct 2018 13:21:02 +0100 Subject: remove unneeded empty search attribute values, fixes #12086 Signed-off-by: Arthur Schiwon --- apps/user_ldap/lib/User/Manager.php | 7 +++++++ 1 file changed, 7 insertions(+) (limited to 'apps/user_ldap/lib/User') 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; } -- cgit v1.2.3