diff options
Diffstat (limited to 'lualibs-util-tab.lua')
-rw-r--r-- | lualibs-util-tab.lua | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/lualibs-util-tab.lua b/lualibs-util-tab.lua index ae44269..d235520 100644 --- a/lualibs-util-tab.lua +++ b/lualibs-util-tab.lua @@ -316,7 +316,7 @@ function table.fastserialize(t,prefix) -- not sorted -- only number and string indices (currently) - local r = { prefix or "return" } + local r = { type(prefix) == "string" and prefix or "return" } local m = 1 local function fastserialize(t,outer) -- no mixes @@ -376,7 +376,6 @@ function table.fastserialize(t,prefix) end return r end - return concat(fastserialize(t,true)) end |