From 62e88176c62c4975f79bf92a11f37a9ecaf12c3f Mon Sep 17 00:00:00 2001 From: Alexey Melnichuk Date: Tue, 1 Dec 2015 14:35:17 +0300 Subject: [PATCH] Fix. Remove global variable. --- resources/install/scripts/resources/functions/lazy_settings.lua | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/resources/install/scripts/resources/functions/lazy_settings.lua b/resources/install/scripts/resources/functions/lazy_settings.lua index 3d3b72b342..c6950b4d4e 100644 --- a/resources/install/scripts/resources/functions/lazy_settings.lua +++ b/resources/install/scripts/resources/functions/lazy_settings.lua @@ -99,7 +99,7 @@ function Settings:_load(category, subcategory, name) local found = false --get the domain settings if domain_uuid then - sql = "SELECT domain_setting_uuid,domain_setting_category,domain_setting_subcategory,domain_setting_name,domain_setting_value " + local sql = "SELECT domain_setting_uuid,domain_setting_category,domain_setting_subcategory,domain_setting_name,domain_setting_value " sql = sql .. "FROM v_domain_settings "; sql = sql .. "WHERE domain_uuid = '" .. domain_uuid .. "'"; sql = sql .. "AND domain_setting_enabled = 'true' ";