mirror of
https://github.com/processone/ejabberd.git
synced 2024-11-24 16:23:40 +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 ->
|
||||
fun() ->
|
||||
ejabberd_odbc:sql_query_t(
|
||||
iolist_to_binary(
|
||||
[<<"declare c cursor for ">>, SelectQuery])),
|
||||
[iolist_to_binary(
|
||||
[<<"declare c cursor for ">>, SelectQuery])]),
|
||||
fetch(IO, ConvertFun, undefined)
|
||||
end
|
||||
end,
|
||||
|
@ -916,9 +916,9 @@ import(LServer) ->
|
||||
fun([LUser, XML]) ->
|
||||
El = #xmlel{} = xml_stream:parse_element(XML),
|
||||
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(
|
||||
xml:get_attr_s(<<"to">>, El)),
|
||||
xml:get_attr_s(<<"to">>, El#xmlel.attrs)),
|
||||
Stamp = xml:get_path_s(El, [{elem, <<"delay">>},
|
||||
{elem, <<"stamp">>},
|
||||
cdata]),
|
||||
|
Loading…
Reference in New Issue
Block a user