|
@@ -169,15 +169,15 @@ o.rmempty = false
|
|
o.cfgvalue = function(self, section)
|
|
o.cfgvalue = function(self, section)
|
|
local enabled = m:get(section, "enabled")
|
|
local enabled = m:get(section, "enabled")
|
|
if enabled == "0" then
|
|
if enabled == "0" then
|
|
- return m:get(section, "old_server") or "same"
|
|
|
|
|
|
+ return m:get(section, "old_server")
|
|
end
|
|
end
|
|
- return Value.cfgvalue(self, section) or "same" -- Default to `same` when enabled
|
|
|
|
|
|
+ return Value.cfgvalue(self, section) -- Default to `same` when enabled
|
|
end
|
|
end
|
|
|
|
|
|
o.write = function(self, section, value)
|
|
o.write = function(self, section, value)
|
|
local enabled = m:get(section, "enabled")
|
|
local enabled = m:get(section, "enabled")
|
|
if enabled == "0" then
|
|
if enabled == "0" then
|
|
- local old_server = Value.cfgvalue(self, section) or "same"
|
|
|
|
|
|
+ local old_server = Value.cfgvalue(self, section)
|
|
if old_server ~= "nil" then
|
|
if old_server ~= "nil" then
|
|
m:set(section, "old_server", old_server)
|
|
m:set(section, "old_server", old_server)
|
|
end
|
|
end
|