26
1
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:
Paweł Chmielowski 2017-10-31 17:59:55 +01:00
parent 88558453fb
commit efc4996625

View File

@ -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]),
[] []