mirror of
https://github.com/fusionpbx/fusionpbx.git
synced 2026-01-05 03:03:49 +00:00
database_host nil prevention
This commit is contained in:
@@ -137,11 +137,12 @@
|
||||
database_hostname = row["hostname"];
|
||||
end);
|
||||
--freeswitch.consoleLog("notice", "[xml_handler] sql: " .. sql .. "\n");
|
||||
--freeswitch.consoleLog("notice", "[xml_handler-directory.lua] database_hostname is " .. database_hostname .. "\n");
|
||||
|
||||
--hostname was not found set load_balancing to false to prevent a database_hostname concatenation error
|
||||
if (database_hostname == nil) then
|
||||
load_balancing = false;
|
||||
else
|
||||
--freeswitch.consoleLog("notice", "[xml_handler-directory.lua] database_hostname is " .. database_hostname .. "\n");
|
||||
end
|
||||
|
||||
--close the database connection
|
||||
|
||||
Reference in New Issue
Block a user