24
1
mirror of https://github.com/processone/ejabberd.git synced 2024-06-14 22:00:16 +02:00

Fix crash in mod_muc_admin, we operate on integers here not lists

This commit is contained in:
Paweł Chmielowski 2017-03-21 15:35:51 +01:00
parent 9fb188afbc
commit f819272b88

View File

@ -289,7 +289,7 @@ web_menu_host(Acc, _Host, Lang) ->
web_page_main(_, #request{path=[<<"muc">>], lang = Lang} = _Request) -> web_page_main(_, #request{path=[<<"muc">>], lang = Lang} = _Request) ->
OnlineRoomsNumber = lists:foldl( OnlineRoomsNumber = lists:foldl(
fun(Host, Acc) -> fun(Host, Acc) ->
Acc ++ mod_muc:count_online_rooms(Host) Acc + mod_muc:count_online_rooms(Host)
end, 0, find_hosts(global)), end, 0, find_hosts(global)),
Res = [?XCT(<<"h1">>, <<"Multi-User Chat">>), Res = [?XCT(<<"h1">>, <<"Multi-User Chat">>),
?XCT(<<"h3">>, <<"Statistics">>), ?XCT(<<"h3">>, <<"Statistics">>),