diff options
author | Badlop <badlop@process-one.net> | 2017-01-06 16:13:57 +0100 |
---|---|---|
committer | Badlop <badlop@process-one.net> | 2017-01-06 16:13:57 +0100 |
commit | 9605e2b2a417bd2bb7b870e823a2065ce00ebeb6 (patch) | |
tree | b64e174d17ad003c2fe58c66733c1d6d563381da | |
parent | Get nodes from ejabberd_cluster instead of mnesia (diff) |
Fix problem with get_vcard command (#1447)
-rw-r--r-- | src/mod_admin_extra.erl | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/mod_admin_extra.erl b/src/mod_admin_extra.erl index e0c5eaa63..7cef6af97 100644 --- a/src/mod_admin_extra.erl +++ b/src/mod_admin_extra.erl @@ -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; |