From: Paweł Chmielowski Date: Tue, 21 Mar 2017 14:35:51 +0000 (+0100) Subject: Fix crash in mod_muc_admin, we operate on integers here not lists X-Git-Tag: 17.03~8 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=f819272b886c6b2874b1e2cb7e6ff4e12bc10f3b;p=ejabberd Fix crash in mod_muc_admin, we operate on integers here not lists --- 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">>),