25
1
mirror of https://github.com/processone/ejabberd.git synced 2024-11-24 16:23:40 +01:00

Fix problem with get_vcard command (#1447)

This commit is contained in:
Badlop 2017-01-06 16:13:57 +01:00
parent a910ab8171
commit 9605e2b2a4

View File

@ -1098,8 +1098,8 @@ set_vcard(User, Host, Name, Subname, SomeContent) ->
get_vcard_content(User, Server, Data) ->
case mod_vcard:get_vcard(jid:nodeprep(User), jid:nameprep(Server)) of
[_|_] = Els ->
case get_vcard(Data, Els) of
[El|_] ->
case get_vcard(Data, El) of
[false] -> throw(error_no_value_found_in_vcard);
ElemList -> ?DEBUG("ELS ~p", [ElemList]), [fxml:get_tag_cdata(Elem) || Elem <- ElemList]
end;