24
1
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:
badlop 2014-05-07 16:49:31 +02:00
commit c511194c2e

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