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
1 changed files with 2 additions and 2 deletions

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;