diff options
Diffstat (limited to 'lualib/lua_selectors.lua')
-rw-r--r-- | lualib/lua_selectors.lua | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/lualib/lua_selectors.lua b/lualib/lua_selectors.lua index d93b11df6..983f28589 100644 --- a/lualib/lua_selectors.lua +++ b/lualib/lua_selectors.lua @@ -244,7 +244,8 @@ e.g. `get_user`]], -- the second argument is optional and defines the type (string by default) ['pool_var'] = { ['get_value'] = function(task, args) - return task:get_mempool():get_variable(args[1], args[2]),(args[2] or 'string') + local type = args[2] or 'string' + return task:get_mempool():get_variable(args[1], type),(type) end, ['description'] = [[Get specific pool var. The first argument must be variable name, the second argument is optional and defines the type (string by default)]], |