From a8fba1ca304a01dfe372ff4e2b8ee209b20f7dd9 Mon Sep 17 00:00:00 2001 From: Badlop Date: Tue, 25 Mar 2014 18:17:14 +0100 Subject: [PATCH] Fix get_vcard and set_vcard when using option module_resource (issue #21) --- mod_admin_extra/src/mod_admin_extra.erl | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/mod_admin_extra/src/mod_admin_extra.erl b/mod_admin_extra/src/mod_admin_extra.erl index dcc41d8..b752b24 100644 --- a/mod_admin_extra/src/mod_admin_extra.erl +++ b/mod_admin_extra/src/mod_admin_extra.erl @@ -968,7 +968,7 @@ set_vcard(User, Host, Name, Subname, SomeContent) -> get_module_resource(Server) -> case gen_mod:get_module_opt(Server, ?MODULE, module_resource, fun(A) -> A end, none) of none -> list_to_binary(atom_to_list(?MODULE)); - R when is_list(R) -> R + R when is_binary(R) -> R end. get_vcard_content(User, Server, Data) ->