diff options
author | Paweł Chmielowski <pchmielowski@process-one.net> | 2017-03-21 15:35:51 +0100 |
---|---|---|
committer | Paweł Chmielowski <pchmielowski@process-one.net> | 2017-03-21 15:36:42 +0100 |
commit | f819272b886c6b2874b1e2cb7e6ff4e12bc10f3b (patch) | |
tree | 99dcaef624f91719065c8b8f65709995d8c5038b | |
parent | Don't block contacts with subscription=to in mod_block_strangers (#1609) (diff) |
Fix crash in mod_muc_admin, we operate on integers here not lists
-rw-r--r-- | src/mod_muc_admin.erl | 2 |
1 files changed, 1 insertions, 1 deletions
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">>), |