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:
parent
e7c94975eb
commit
d3ed12d4ba
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user