summaryrefslogtreecommitdiff
path: root/src/mod_vcard_ldap.erl
diff options
context:
space:
mode:
authorEvgeniy Khramtsov <ekhramtsov@process-one.net>2017-05-17 17:13:34 +0300
committerEvgeniy Khramtsov <ekhramtsov@process-one.net>2017-05-17 17:13:34 +0300
commit1925b94131a5fa5de8d718ae81d86dcca2ae653f (patch)
tree820124866d9e4bb4592eacb7441635269b88a4cb /src/mod_vcard_ldap.erl
parentAdd cache options to the validator (diff)
Implement cache for mod_vcard and mod_vcard_xupdate
Diffstat (limited to 'src/mod_vcard_ldap.erl')
-rw-r--r--src/mod_vcard_ldap.erl4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/mod_vcard_ldap.erl b/src/mod_vcard_ldap.erl
index fe11d096..6a690779 100644
--- a/src/mod_vcard_ldap.erl
+++ b/src/mod_vcard_ldap.erl
@@ -97,9 +97,9 @@ get_vcard(LUser, LServer) ->
#eldap_entry{attributes = Attributes} ->
VCard = ldap_attributes_to_vcard(Attributes, VCardMap,
{LUser, LServer}),
- [xmpp:encode(VCard)];
+ {ok, [xmpp:encode(VCard)]};
_ ->
- []
+ {ok, []}
end.
set_vcard(_LUser, _LServer, _VCard, _VCardSearch) ->