Update languages.lua
Prevent a nill error when the phrase was not found.
This commit is contained in:
@@ -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
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user