projects
/
project
/
luci.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Merge pull request #1235 from aa65535/luci-base
[project/luci.git]
/
applications
/
luci-app-travelmate
/
luasrc
/
model
/
cbi
/
travelmate
/
wifi_order.lua
diff --git
a/applications/luci-app-travelmate/luasrc/model/cbi/travelmate/wifi_order.lua
b/applications/luci-app-travelmate/luasrc/model/cbi/travelmate/wifi_order.lua
index
5b6141e
..
6eb4c72
100644
(file)
--- a/
applications/luci-app-travelmate/luasrc/model/cbi/travelmate/wifi_order.lua
+++ b/
applications/luci-app-travelmate/luasrc/model/cbi/travelmate/wifi_order.lua
@@
-8,13
+8,12
@@
local uci = require("luci.model.uci").cursor()
local trmiface = uci:get("travelmate", "global", "trm_iface") or "trm_wwan"
if cfg ~= nil then
local trmiface = uci:get("travelmate", "global", "trm_iface") or "trm_wwan"
if cfg ~= nil then
- local iface = ""
local section = ""
local idx = ""
local idx_change = ""
local changed = ""
uci:foreach("wireless", "wifi-iface", function(s)
local section = ""
local idx = ""
local idx_change = ""
local changed = ""
uci:foreach("wireless", "wifi-iface", function(s)
- iface = s.network
+ local iface = s.network or ""
if iface == trmiface then
section = s['.name']
if cfg == section then
if iface == trmiface then
section = s['.name']
if cfg == section then