# HG changeset patch # User Kim Alvefur # Date 1599938328 -7200 # Node ID 4656a64e59bedf365765cd77c53c283b5d8a34fe # Parent c85af57e82e084e7eb9a438830a92d231157dfce mod_register_apps: Prevent traceback if hide_apps is unset (thanks meaz) diff -r c85af57e82e0 -r 4656a64e59be mod_register_apps/mod_register_apps.lua --- 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;