aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorBadlop <badlop@process-one.net>2015-03-23 13:27:46 +0100
committerBadlop <badlop@process-one.net>2015-03-26 14:00:54 +0100
commit0c30beb93d3735d765de670a66f4d51945f4a398 (patch)
tree95002ac5e188baa56b15d842b6614fffdf380bd6 /src
parentIgnore errors when retrieving status if the users just got offline (diff)
Fix return error when requesting non-existing vcard value (#21)
Diffstat (limited to 'src')
-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;
[] ->