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

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 c9393bc4f4
commit 0c30beb93d

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;
[] ->