luci-app-travelmate: sync with 0.9.2
[project/luci.git] / applications / luci-app-travelmate / luasrc / model / cbi / travelmate / wifi_order.lua
index 5b6141e..6eb4c72 100644 (file)
@@ -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