From 7e9acda1c7cabac7be998fec0b5d2f131358c59d Mon Sep 17 00:00:00 2001 From: Holger Weiss Date: Tue, 17 Feb 2015 22:46:38 +0100 Subject: [PATCH] mod_statsdx: Fix type issue when parsing xml:lang --- mod_statsdx/src/mod_statsdx.erl | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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),