aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorPaweł Chmielowski <pchmielowski@process-one.net>2017-03-21 15:35:51 +0100
committerPaweł Chmielowski <pchmielowski@process-one.net>2017-03-21 15:36:42 +0100
commitf819272b886c6b2874b1e2cb7e6ff4e12bc10f3b (patch)
tree99dcaef624f91719065c8b8f65709995d8c5038b
parentDon'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.erl2
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">>),