mirror of
https://github.com/processone/ejabberd
synced 2025-10-03 17:59:31 +02:00
Fix sql query
This commit is contained in:
parent
88558453fb
commit
efc4996625
1 changed files with 1 additions and 1 deletions
|
@ -412,7 +412,7 @@ get_subscribed_rooms(LServer, Host, Jid) ->
|
||||||
?SQL("select @(room)s from muc_room_subscribers where jid=%(JidS)s"
|
?SQL("select @(room)s from muc_room_subscribers where jid=%(JidS)s"
|
||||||
" and host=%(Host)s")) of
|
" and host=%(Host)s")) of
|
||||||
{selected, Subs} ->
|
{selected, Subs} ->
|
||||||
[jid:make(Room, Host, <<>>) || Room<-Subs];
|
[jid:make(Room, Host, <<>>) || {Room} <- Subs];
|
||||||
Error ->
|
Error ->
|
||||||
?ERROR_MSG("Error when fetching subscribed rooms ~p", [Error]),
|
?ERROR_MSG("Error when fetching subscribed rooms ~p", [Error]),
|
||||||
[]
|
[]
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue