25
1
mirror of https://github.com/processone/ejabberd.git synced 2024-10-07 14:58:56 +02:00

* src/mod_offline_odbc.erl: Bugfix

SVN Revision: 955
This commit is contained in:
Alexey Shchepin 2007-10-06 17:35:15 +00:00
parent 4971de9d2a
commit 5ab52e2712
2 changed files with 6 additions and 1 deletions

View File

@ -1,3 +1,7 @@
2007-10-06 Alexey Shchepin <alexey@process-one.net>
* src/mod_offline_odbc.erl: Bugfix
2007-10-01 Alexey Shchepin <alexey@process-one.net>
* src/ejabberd_auth_pam.erl: Support for PAM authentication

View File

@ -425,8 +425,9 @@ webadmin_user(Acc, User, Server, Lang) ->
%% Returns as integer the number of offline messages for a given user
count_offline_messages(LUser, LServer) ->
Username = ejabberd_odbc:escape(LUser),
case catch odbc_queries:count_records_where(
LServer, "spool", "where username='" ++ LUser ++ "'") of
LServer, "spool", "where username='" ++ Username ++ "'") of
{selected, [_], [{Res}]} ->
list_to_integer(Res);
_ ->