From 31fa36003f1393621af5ebd68fa0f44674fa2528 Mon Sep 17 00:00:00 2001 From: Badlop Date: Wed, 3 May 2017 23:32:56 +0200 Subject: [PATCH] Parse ldap_uids in mod_vcard_ldap like in eldap_utils (#319) --- src/mod_vcard_ldap.erl | 5 +++-- 1 file 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) -> -- 2.40.0