From: Avinesh Singh Date: Sat, 30 Oct 2021 08:55:13 +0000 (+0530) Subject: luci-app-unbound: fix error on empty leasetrigger X-Git-Url: http://git.99rst.org/?a=commitdiff_plain;h=fce70a08ccb5d489a8625f86b78ed33cad386e6b;p=openwrt-luci.git luci-app-unbound: fix error on empty leasetrigger Signed-off-by: Avinesh Singh --- diff --git a/applications/luci-app-unbound/luasrc/model/cbi/unbound/configure.lua b/applications/luci-app-unbound/luasrc/model/cbi/unbound/configure.lua index a1b3661536..acbd7c2aed 100644 --- a/applications/luci-app-unbound/luasrc/model/cbi/unbound/configure.lua +++ b/applications/luci-app-unbound/luasrc/model/cbi/unbound/configure.lua @@ -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"),