# HG changeset patch # User Waqas Hussain # Date 1311542500 -18000 # Node ID f932dc371ce7354dcffa2bcd8e199e7e71fa8583 # Parent 5ef71af77ae2e95345864a81117349f501c38587 mod_muc_log_http: Generate main component list page even when there are no components defined. diff -r 5ef71af77ae2 -r f932dc371ce7 mod_muc_log_http/muc_log_http/mod_muc_log_http.lua --- a/mod_muc_log_http/muc_log_http/mod_muc_log_http.lua Mon Jul 25 02:21:40 2011 +0500 +++ b/mod_muc_log_http/muc_log_http/mod_muc_log_http.lua Mon Jul 25 02:21:40 2011 +0500 @@ -137,9 +137,7 @@ for component,muc_host in pairs(muc_hosts or {}) do components = components .. html.components.bit:gsub("###COMPONENT###", component); end - if components ~= "" then - return html.components.body:gsub("###COMPONENTS_STUFF###", components); - end + return html.components.body:gsub("###COMPONENTS_STUFF###", components); end local function generateRoomListSiteContent(component)