X-Git-Url: http://git.archive.openwrt.org/?p=project%2Fluci.git;a=blobdiff_plain;f=applications%2Fluci-app-travelmate%2Fluasrc%2Fmodel%2Fcbi%2Ftravelmate%2Fwifi_order.lua;h=6eb4c720632d24e118d85399777cc161024a0878;hp=5b6141e52d39b246f500f8ac5cf8a2522027f559;hb=3317104647c6e189094464d045d9ec76ee8530e9;hpb=4e80499a023fb195c7c897841473f526ffd0c7fa;ds=sidebyside 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 5b6141e52..6eb4c7206 100644 --- 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 iface = "" 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