mirror of
https://github.com/processone/ejabberd.git
synced 2024-11-26 16:26:24 +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(
|
case catch odbc_queries:count_records_where(
|
||||||
LServer, "spool",
|
LServer, "spool",
|
||||||
<<"where username='", Username/binary, "'">>) of
|
<<"where username='", Username/binary, "'">>) of
|
||||||
{selected, [_], [{Res}]} ->
|
{selected, [_], [[Res]]} ->
|
||||||
jlib:binary_to_integer(Res);
|
jlib:binary_to_integer(Res);
|
||||||
_ ->
|
_ ->
|
||||||
0
|
0
|
||||||
|
Loading…
Reference in New Issue
Block a user