25
1
mirror of https://github.com/processone/ejabberd.git synced 2024-12-26 17:38:45 +01:00

fix mod_offline:count_offline_messages/2

This commit is contained in:
HAMANO Tsukasa 2014-05-07 15:38:18 +09:00
parent e7c94975eb
commit d3ed12d4ba

View File

@ -870,7 +870,7 @@ count_offline_messages(LUser, LServer) ->
case catch odbc_queries:count_records_where(
LServer, "spool",
<<"where username='", Username/binary, "'">>) of
{selected, [_], [{Res}]} ->
{selected, [_], [[Res]]} ->
jlib:binary_to_integer(Res);
_ ->
0