From 6a51fbe67309fe074eb818ee81f3907bc576da0e Mon Sep 17 00:00:00 2001 From: Steven Barth Date: Sun, 15 Nov 2009 19:02:39 +0000 Subject: [PATCH] Minor fixes --- libs/cbi/luasrc/view/cbi/lvalue.htm | 2 +- libs/sys/luasrc/sys.lua | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/libs/cbi/luasrc/view/cbi/lvalue.htm b/libs/cbi/luasrc/view/cbi/lvalue.htm index b69934a0f..8c7581a2c 100644 --- a/libs/cbi/luasrc/view/cbi/lvalue.htm +++ b/libs/cbi/luasrc/view/cbi/lvalue.htm @@ -24,7 +24,7 @@ $Id$ for i, key in pairs(self.keylist) do c = c + 1 %> - /> + /> ><%=self.vallist[i]%> <% if c == self.size then c = 0 %><% if self.orientation == "horizontal" then %> <% else %>
<% end %> <% end end %> diff --git a/libs/sys/luasrc/sys.lua b/libs/sys/luasrc/sys.lua index 460764c15..d9fe5ab25 100644 --- a/libs/sys/luasrc/sys.lua +++ b/libs/sys/luasrc/sys.lua @@ -687,7 +687,7 @@ end -- @param iface Wireless interface (optional) -- @return Table of available channels function wifi.channels(iface) - local t = iwinfo.type(iface) + local t = iwinfo.type(iface or "") local cns if t and iwinfo[t] then cns = iwinfo[t].freqlist(iface) -- 2.25.1