mirror of
https://github.com/processone/ejabberd.git
synced 2024-06-22 22:23:42 +02: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(
|
||||
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