Fix. Declare vars in correct scope.

This commit is contained in:
Alexey Melnichuk 2016-02-05 10:20:09 +03:00
parent b3764e21f9
commit b616736a29
1 changed files with 3 additions and 3 deletions

View File

@ -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