mirror of
https://github.com/processone/ejabberd.git
synced 2024-12-20 17:27:00 +01:00
* src/mod_offline_odbc.erl: Bugfix
SVN Revision: 955
This commit is contained in:
parent
4971de9d2a
commit
5ab52e2712
@ -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>
|
2007-10-01 Alexey Shchepin <alexey@process-one.net>
|
||||||
|
|
||||||
* src/ejabberd_auth_pam.erl: Support for PAM authentication
|
* src/ejabberd_auth_pam.erl: Support for PAM authentication
|
||||||
|
@ -425,8 +425,9 @@ webadmin_user(Acc, User, Server, Lang) ->
|
|||||||
|
|
||||||
%% Returns as integer the number of offline messages for a given user
|
%% Returns as integer the number of offline messages for a given user
|
||||||
count_offline_messages(LUser, LServer) ->
|
count_offline_messages(LUser, LServer) ->
|
||||||
|
Username = ejabberd_odbc:escape(LUser),
|
||||||
case catch odbc_queries:count_records_where(
|
case catch odbc_queries:count_records_where(
|
||||||
LServer, "spool", "where username='" ++ LUser ++ "'") of
|
LServer, "spool", "where username='" ++ Username ++ "'") of
|
||||||
{selected, [_], [{Res}]} ->
|
{selected, [_], [{Res}]} ->
|
||||||
list_to_integer(Res);
|
list_to_integer(Res);
|
||||||
_ ->
|
_ ->
|
||||||
|
Loading…
Reference in New Issue
Block a user