mirror of
https://github.com/processone/ejabberd.git
synced 2024-11-24 16:23:40 +01:00
Use correct table field name in sql query
This commit is contained in:
parent
2060022b19
commit
90e1f3f29d
@ -109,7 +109,7 @@ restore_room(LServer, Host, Name) ->
|
|||||||
OptsD = ejabberd_sql:decode_term(Opts),
|
OptsD = ejabberd_sql:decode_term(Opts),
|
||||||
case catch ejabberd_sql:sql_query(
|
case catch ejabberd_sql:sql_query(
|
||||||
LServer,
|
LServer,
|
||||||
?SQL("select @(jid)s, @(nick)s, @(nodes)s from muc_room_subscribers where name=%(Name)s"
|
?SQL("select @(jid)s, @(nick)s, @(nodes)s from muc_room_subscribers where room=%(Name)s"
|
||||||
" and host=%(Host)s")) of
|
" and host=%(Host)s")) of
|
||||||
{selected, []} ->
|
{selected, []} ->
|
||||||
OptsR = mod_muc:opts_to_binary(OptsD),
|
OptsR = mod_muc:opts_to_binary(OptsD),
|
||||||
|
Loading…
Reference in New Issue
Block a user