diff options
| author | Evgeniy Khramtsov <ekhramtsov@process-one.net> | 2013-03-29 19:23:52 +1000 |
|---|---|---|
| committer | Evgeniy Khramtsov <ekhramtsov@process-one.net> | 2013-03-29 19:23:52 +1000 |
| commit | 299a0f823aa7e239fcd32c6d1ba5a061d21e01a4 (patch) | |
| tree | 0ea90ee98e0821be0af26e554b3e2c3505c52b78 /src/mod_offline.erl | |
| parent | Add mod_carboncopy that implements XEP-0280 v0.8 (diff) | |
Fix several refactoring related bugs
Diffstat (limited to 'src/mod_offline.erl')
| -rw-r--r-- | src/mod_offline.erl | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/src/mod_offline.erl b/src/mod_offline.erl index a1bf3da04..4670b9b84 100644 --- a/src/mod_offline.erl +++ b/src/mod_offline.erl @@ -830,9 +830,10 @@ webadmin_user_parse_query(Acc, _Action, _User, _Server, count_offline_messages(LUser, LServer) -> Username = ejabberd_odbc:escape(LUser), case catch odbc_queries:count_records_where( - LServer, "spool", "where username='" ++ Username ++ "'") of + LServer, "spool", + <<"where username='", Username/binary, "'">>) of {selected, [_], [{Res}]} -> - list_to_integer(Res); + jlib:binary_to_integer(Res); _ -> 0 end. |
