25
1
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:
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( 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