aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/mod_vcard_ldap.erl5
1 files changed, 3 insertions, 2 deletions
diff --git a/src/mod_vcard_ldap.erl b/src/mod_vcard_ldap.erl
index d5ec2a8f1..28dda7af6 100644
--- a/src/mod_vcard_ldap.erl
+++ b/src/mod_vcard_ldap.erl
@@ -429,9 +429,10 @@ mod_opt_type(ldap_uids) ->
fun (Us) ->
lists:map(fun ({U, P}) ->
{iolist_to_binary(U), iolist_to_binary(P)};
- ({U}) -> {iolist_to_binary(U)}
+ ({U}) -> {iolist_to_binary(U)};
+ (U) -> {iolist_to_binary(U)}
end,
- Us)
+ lists:flatten(Us))
end;
mod_opt_type(ldap_vcard_map) ->
fun (Ls) ->