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
1 changed files with 1 additions and 1 deletions

View File

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