mirror of
https://github.com/processone/ejabberd.git
synced 2024-11-28 16:34:13 +01:00
Fix some type errors
This commit is contained in:
parent
f75d78d3f5
commit
8ce22b790d
@ -175,8 +175,8 @@ import(LServer, SelectQuery, IO, ConvertFun, Opts) ->
|
|||||||
false ->
|
false ->
|
||||||
fun() ->
|
fun() ->
|
||||||
ejabberd_odbc:sql_query_t(
|
ejabberd_odbc:sql_query_t(
|
||||||
iolist_to_binary(
|
[iolist_to_binary(
|
||||||
[<<"declare c cursor for ">>, SelectQuery])),
|
[<<"declare c cursor for ">>, SelectQuery])]),
|
||||||
fetch(IO, ConvertFun, undefined)
|
fetch(IO, ConvertFun, undefined)
|
||||||
end
|
end
|
||||||
end,
|
end,
|
||||||
|
@ -916,9 +916,9 @@ import(LServer) ->
|
|||||||
fun([LUser, XML]) ->
|
fun([LUser, XML]) ->
|
||||||
El = #xmlel{} = xml_stream:parse_element(XML),
|
El = #xmlel{} = xml_stream:parse_element(XML),
|
||||||
From = #jid{} = jlib:string_to_jid(
|
From = #jid{} = jlib:string_to_jid(
|
||||||
xml:get_attr_s(<<"from">>, El)),
|
xml:get_attr_s(<<"from">>, El#xmlel.attrs)),
|
||||||
To = #jid{} = jlib:string_to_jid(
|
To = #jid{} = jlib:string_to_jid(
|
||||||
xml:get_attr_s(<<"to">>, El)),
|
xml:get_attr_s(<<"to">>, El#xmlel.attrs)),
|
||||||
Stamp = xml:get_path_s(El, [{elem, <<"delay">>},
|
Stamp = xml:get_path_s(El, [{elem, <<"delay">>},
|
||||||
{elem, <<"stamp">>},
|
{elem, <<"stamp">>},
|
||||||
cdata]),
|
cdata]),
|
||||||
|
Loading…
Reference in New Issue
Block a user