Fix sql query

This commit is contained in:
Paweł Chmielowski 2017-10-31 17:59:55 +01:00
parent 88558453fb
commit efc4996625
1 changed files with 1 additions and 1 deletions

View File

@ -412,7 +412,7 @@ get_subscribed_rooms(LServer, Host, Jid) ->
?SQL("select @(room)s from muc_room_subscribers where jid=%(JidS)s"
" and host=%(Host)s")) of
{selected, Subs} ->
[jid:make(Room, Host, <<>>) || Room<-Subs];
[jid:make(Room, Host, <<>>) || {Room} <- Subs];
Error ->
?ERROR_MSG("Error when fetching subscribed rooms ~p", [Error]),
[]