mirror of
https://github.com/processone/ejabberd.git
synced 2024-12-26 17:38:45 +01:00
Fix return error when requesting non-existing vcard value (#21)
This commit is contained in:
parent
c9393bc4f4
commit
0c30beb93d
@ -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;
|
||||
[] ->
|
||||
|
Loading…
Reference in New Issue
Block a user