diff --git a/mod_statsdx/src/mod_statsdx.erl b/mod_statsdx/src/mod_statsdx.erl index 7643ca8..179854d 100644 --- a/mod_statsdx/src/mod_statsdx.erl +++ b/mod_statsdx/src/mod_statsdx.erl @@ -790,7 +790,7 @@ received_response(From, {xmlel, <<"iq">>, Attrs, Elc}) -> <<"result">> = xml:get_attr_s(<<"type">>, Attrs), Lang = case xml:get_attr_s(<<"xml:lang">>, Attrs) of - [] -> "unknown"; + <<"">> -> "unknown"; L -> binary_to_list(L) end, TableHost = table_name(Host),