* src/ejd2odbc.erl: Bugfix (thanks to Badlop)

SVN Revision: 769
This commit is contained in:
Alexey Shchepin 2007-05-15 00:07:25 +00:00
parent b444faaf89
commit 897cc13f42
1 changed files with 8 additions and 2 deletions

View File

@ -315,8 +315,14 @@ record_to_string(#roster{usj = {User, _Server, JID},
in -> "I";
none -> "N"
end,
SAskMessage = ejabberd_odbc:escape(
binary_to_list(list_to_binary([AskMessage]))),
SAskMessage =
case catch ejabberd_odbc:escape(
binary_to_list(list_to_binary([AskMessage]))) of
{'EXIT', _Reason} ->
[];
SAM ->
SAM
end,
["("
"'", Username, "',"
"'", SJID, "',"