luci-app-unbound: fix error on empty leasetrigger

Signed-off-by: Avinesh Singh <gitlocal@avine.sh>
This commit is contained in:
Avinesh Singh 2021-10-30 14:25:13 +05:30
parent 0740023a3c
commit fce70a08cc

View file

@ -19,7 +19,7 @@ local ds = require "luci.dispatcher"
local ucl = luci.model.uci.cursor()
local valman = ucl:get_first("unbound", "unbound", "manual_conf")
local dhcplk = ucl:get_first("unbound", "unbound", "dhcp_link")
local lstrig = ucl:get_first("dhcp", "odhcpd", "leasetrigger")
local lstrig = ucl:get_first("dhcp", "odhcpd", "leasetrigger") or "undefined"
m1 = Map("unbound")
s1 = m1:section(TypedSection, "unbound", translate("Recursive DNS"),