From d34489093f1e73a293314d2f4278a10fa618abfd Mon Sep 17 00:00:00 2001 From: Peter Kozak Date: Sun, 4 Aug 2013 12:16:08 +0200 Subject: return value can be false or nil --- misc/freeswitch/scripts/common/array.lua | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/misc/freeswitch/scripts/common/array.lua b/misc/freeswitch/scripts/common/array.lua index c3cabec..58a6798 100644 --- a/misc/freeswitch/scripts/common/array.lua +++ b/misc/freeswitch/scripts/common/array.lua @@ -41,10 +41,11 @@ end function expand_variable(variable_path, variable_sets) for index=1, #variable_sets do local result = try(variable_sets[index], variable_path); - if result then + if result ~= nil then return result; end end + return nil; end -- replace variables in a string by array values -- cgit v1.2.3