aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--src/mod_admin_extra.erl2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/mod_admin_extra.erl b/src/mod_admin_extra.erl
index ee5880d9d..f04e6a19a 100644
--- a/src/mod_admin_extra.erl
+++ b/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;
[] ->