mirror of
https://github.com/processone/ejabberd.git
synced 2025-01-01 17:53:00 +01:00
Fix sql query
This commit is contained in:
parent
88558453fb
commit
efc4996625
@ -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…
Reference in New Issue
Block a user