Fix. Declare vars in correct scope.
This commit is contained in:
parent
b3764e21f9
commit
b616736a29
|
|
@ -317,10 +317,10 @@
|
|||
log.notice("SQL: " .. sql);
|
||||
end
|
||||
|
||||
local actions, script, data = {}
|
||||
local actions = {}
|
||||
dbh:query(sql, function(row)
|
||||
-- clear vars
|
||||
action, script, data = nil
|
||||
-- declare vars
|
||||
local action, script, data
|
||||
|
||||
--check for matching options
|
||||
if tonumber(row.ivr_menu_option_digits) then
|
||||
|
|
|
|||
Loading…
Reference in New Issue