summaryrefslogtreecommitdiffstats
path: root/lbu-controller.lua
diff options
context:
space:
mode:
Diffstat (limited to 'lbu-controller.lua')
-rw-r--r--lbu-controller.lua8
1 files changed, 4 insertions, 4 deletions
diff --git a/lbu-controller.lua b/lbu-controller.lua
index fbae3c9..e6fa4f4 100644
--- a/lbu-controller.lua
+++ b/lbu-controller.lua
@@ -25,19 +25,19 @@ status = function (self)
end
config = function (self)
- if (self.clientdata.cmd_delete_excluded) then
+ if (self.clientdata.cmd_delete_excluded) and (self.clientdata.lbu_excluded) then
cmdresult = self.model:lbuincexcl("exclude", self.clientdata.lbu_excluded, "remove")
end
- if (self.clientdata.cmd_delete_included) then
+ if (self.clientdata.cmd_delete_included) and (self.clientdata.lbu_included) then
cmdresult = self.model:lbuincexcl("include", self.clientdata.lbu_included, "remove")
end
if (self.clientdata.config_submit) then
cmdresult = self.model:editconfig(self.clientdata)
end
- if (self.clientdata.cmd_add_include) then
+ if (self.clientdata.cmd_add_include) and (self.clientdata.item_add_include) then
cmdresult = self.model:lbuincexcl("include", self.clientdata.item_add_include, "add")
end
- if (self.clientdata.cmd_add_exclude) then
+ if (self.clientdata.cmd_add_exclude) and (self.clientdata.item_add_exclude) then
cmdresult = self.model:lbuincexcl("exclude", self.clientdata.item_add_exclude, "add")
end