From 08014dc042b7d3c909fc498ed1cda246dc83bc7c Mon Sep 17 00:00:00 2001 From: Mark Crane Date: Sat, 18 Apr 2015 22:49:09 +0000 Subject: [PATCH] Change the row table array to field to prevent a conflict with the existing row table / array. --- resources/install/scripts/directory.lua | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/resources/install/scripts/directory.lua b/resources/install/scripts/directory.lua index 824052018e..fc6b10a6eb 100644 --- a/resources/install/scripts/directory.lua +++ b/resources/install/scripts/directory.lua @@ -266,7 +266,7 @@ --if (debug["sql"]) then freeswitch.consoleLog("notice", "[directory] SQL: " .. sql .. "\n"); --end - status = dbh:query(sql, function(row) + status = dbh:query(sql, function(field) --add functions dofile(scripts_dir.."/resources/functions/base64.lua"); @@ -274,9 +274,9 @@ file_location = voicemail_dir.."/"..row.extension.."/recorded_name.wav"; --save the recording to the file system - if (string.len(row["voicemail_name_base64"]) > 32) then + if (string.len(field["voicemail_name_base64"]) > 32) then local file = io.open(file_location, "w"); - file:write(base64.decode(row["voicemail_name_base64"])); + file:write(base64.decode(field["voicemail_name_base64"])); file:close(); end