]> granicus.if.org Git - ejabberd/commitdiff
Fix return error when requesting non-existing vcard value (#21)
authorBadlop <badlop@process-one.net>
Mon, 23 Mar 2015 12:27:46 +0000 (13:27 +0100)
committerBadlop <badlop@process-one.net>
Thu, 26 Mar 2015 13:00:54 +0000 (14:00 +0100)
src/mod_admin_extra.erl

index ee5880d9dcb4b2ef27cc5269e419a0d7902321aa..f04e6a19a018582332f1c46da49e7964d4a7d2af 100644 (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;
        [] ->