From 9379f73feb66ce4d401e3b530ebaab844c702466 Mon Sep 17 00:00:00 2001 From: Badlop Date: Mon, 23 Mar 2015 13:27:46 +0100 Subject: [PATCH] Fix return error when requesting non-existing vcard value (#21) --- mod_admin_extra/src/mod_admin_extra.erl | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/mod_admin_extra/src/mod_admin_extra.erl b/mod_admin_extra/src/mod_admin_extra.erl index ee5880d..f04e6a1 100644 --- a/mod_admin_extra/src/mod_admin_extra.erl +++ b/mod_admin_extra/src/mod_admin_extra.erl @@ -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; [] ->