Fix return error when requesting non-existing vcard value (#21)

This commit is contained in:
Badlop 2015-03-23 13:27:46 +01:00
parent cbea31ab68
commit 9379f73feb
1 changed files with 1 additions and 1 deletions

View File

@ -979,7 +979,7 @@ get_vcard_content(User, Server, Data) ->
case IQr#iq.sub_el of
[A1] ->
case get_vcard(Data, A1) of
[] -> throw(error_no_value_found_in_vcard);
[false] -> throw(error_no_value_found_in_vcard);
ElemList -> [xml:get_tag_cdata(Elem) || Elem <- ElemList]
end;
[] ->