changeset 4114:4656a64e59be

mod_register_apps: Prevent traceback if hide_apps is unset (thanks meaz)
author Kim Alvefur <zash@zash.se>
date Sat, 12 Sep 2020 21:18:48 +0200
parents c85af57e82e0
children 165ade4ce97b
files mod_register_apps/mod_register_apps.lua
diffstat 1 files changed, 1 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/mod_register_apps/mod_register_apps.lua	Sat Sep 12 10:42:37 2020 +0100
+++ b/mod_register_apps/mod_register_apps.lua	Sat Sep 12 21:18:48 2020 +0200
@@ -122,7 +122,7 @@
 for _, app_info in ipairs(app_config) do
 	local app_id = app_info.id or app_info.name:gsub("%W+", "-"):lower();
 	if (not show_apps or show_apps:contains(app_id))
-	and not hide_apps:contains(app_id) then
+	and not (hide_apps and hide_apps:contains(app_id)) then
 		app_info.id = app_id;
 		app_info.image = relurl(app_info.image);
 		site_apps[app_id] = app_info;