From 5f93ef811938ef8c5ed3d7e9bb2fc6746dc25577 Mon Sep 17 00:00:00 2001 From: Kim Alvefur Date: Wed, 10 Nov 2021 16:28:54 +0100 Subject: mod_admin_shell: Allow passing columns as a string for convenience --- plugins/mod_admin_shell.lua | 1 + 1 file changed, 1 insertion(+) (limited to 'plugins/mod_admin_shell.lua') diff --git a/plugins/mod_admin_shell.lua b/plugins/mod_admin_shell.lua index 7bff4ef3..6449f3a0 100644 --- a/plugins/mod_admin_shell.lua +++ b/plugins/mod_admin_shell.lua @@ -809,6 +809,7 @@ local available_columns = { }; local function get_colspec(colspec, default) + if type(colspec) == "string" then colspec = array(colspec:gmatch("%S+")); end local columns = {}; for i, col in pairs(colspec or default) do if type(col) == "string" then -- cgit v1.2.3