From f819272b886c6b2874b1e2cb7e6ff4e12bc10f3b Mon Sep 17 00:00:00 2001 From: =?utf8?q?Pawe=C5=82=20Chmielowski?= Date: Tue, 21 Mar 2017 15:35:51 +0100 Subject: [PATCH] Fix crash in mod_muc_admin, we operate on integers here not lists --- src/mod_muc_admin.erl | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/mod_muc_admin.erl b/src/mod_muc_admin.erl index 6b1fcb941..ef42d0b91 100644 --- a/src/mod_muc_admin.erl +++ b/src/mod_muc_admin.erl @@ -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">>), -- 2.40.0