Update languages.lua

Prevent a nill error when the phrase was not found.
This commit is contained in:
FusionPBX
2018-01-31 14:45:24 -07:00
committed by GitHub
parent 241377c09c
commit d877dd0652
@@ -164,12 +164,14 @@
end end
--set the cache --set the cache
local ok, err = cache.set(language_cache_key, XML_STRING, expire["acl"]); if (XML_STRING) then
if debug["cache"] then local ok, err = cache.set(language_cache_key, XML_STRING, expire["acl"]);
if ok then if debug["cache"] then
freeswitch.consoleLog("notice", "[xml_handler] " .. language_cache_key .. " stored in the cache\n"); if ok then
else freeswitch.consoleLog("notice", "[xml_handler] " .. language_cache_key .. " stored in the cache\n");
freeswitch.consoleLog("warning", "[xml_handler] " .. language_cache_key .. " can not be stored in the cache: " .. tostring(err) .. "\n"); else
freeswitch.consoleLog("warning", "[xml_handler] " .. language_cache_key .. " can not be stored in the cache: " .. tostring(err) .. "\n");
end
end end
end end