mirror of
https://github.com/processone/ejabberd.git
synced 2024-12-22 17:28:25 +01:00
Merge pull request #200 from hamano/mod_offline_bug
fix mod_offline:count_offline_messages/2
This commit is contained in:
commit
c511194c2e
@ -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