From ad56d763096fa05ebceb006086bc30b213076464 Mon Sep 17 00:00:00 2001 From: konradSC Date: Fri, 7 Dec 2018 14:13:05 -0500 Subject: [PATCH] Update recordings.lua (#3937) Bug fix. Allow for nil and blank entries. --- resources/install/scripts/recordings.lua | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/resources/install/scripts/recordings.lua b/resources/install/scripts/recordings.lua index 5413b5ecbf..9ea5896991 100644 --- a/resources/install/scripts/recordings.lua +++ b/resources/install/scripts/recordings.lua @@ -271,7 +271,7 @@ if ( session:ready() ) then recordings_dir = recordings_dir .. "/"..domain_name; --if a recording directory is specified, use that instead - if storage_path ~= nil then recordings_dir = storage_path; end + if (storage_path ~= nil and string.len(storage_path) > 0) then recordings_dir = storage_path; end --set the sounds path for the language, dialect and voice default_language = session:getVariable("default_language");