From 03a6ee9ef0c1d3b08d787639cfdde637d2011389 Mon Sep 17 00:00:00 2001 From: Steven Barth Date: Mon, 18 Aug 2008 08:43:48 +0000 Subject: Small bugfixes and improvements --- modules/admin-full/luasrc/model/cbi/admin_network/wireless.lua | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'modules/admin-full/luasrc') diff --git a/modules/admin-full/luasrc/model/cbi/admin_network/wireless.lua b/modules/admin-full/luasrc/model/cbi/admin_network/wireless.lua index ae2462838c..4c7794db91 100644 --- a/modules/admin-full/luasrc/model/cbi/admin_network/wireless.lua +++ b/modules/admin-full/luasrc/model/cbi/admin_network/wireless.lua @@ -60,7 +60,8 @@ end protocol = s:option(DummyValue, "_mode", translate("protocol")) function protocol.cfgvalue(self, section) - return "802." .. wireless[self.map:get(section, "device")].mode + local mode = wireless[self.map:get(section, "device")].mode + return mode and "802." .. mode end mode = s:option(DummyValue, "mode", translate("mode")) -- cgit v1.2.3