mirror of
https://github.com/fusionpbx/fusionpbx.git
synced 2026-01-06 11:43:50 +00:00
Fix. Declare vars in correct scope.
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user