X-Git-Url: http://git.archive.openwrt.org/?p=project%2Fluci.git;a=blobdiff_plain;f=applications%2Fluci-app-travelmate%2Fluasrc%2Fview%2Ftravelmate%2Fstations.htm;h=cbb6c189b8132697497d3bdcee44611c6d8e0571;hp=41c9f5267da1112b6526bf460355a4e5bddf0d69;hb=3317104647c6e189094464d045d9ec76ee8530e9;hpb=4e80499a023fb195c7c897841473f526ffd0c7fa;ds=sidebyside diff --git a/applications/luci-app-travelmate/luasrc/view/travelmate/stations.htm b/applications/luci-app-travelmate/luasrc/view/travelmate/stations.htm index 41c9f5267..cbb6c189b 100644 --- a/applications/luci-app-travelmate/luasrc/view/travelmate/stations.htm +++ b/applications/luci-app-travelmate/luasrc/view/travelmate/stations.htm @@ -5,7 +5,7 @@ This is free software, licensed under the Apache License, Version 2.0 <%- local write = io.write - local uci = require "luci.model.uci".cursor() + local uci = require("luci.model.uci").cursor() local trmiface = uci:get("travelmate", "global", "trm_iface") or "trm_wwan" -%> @@ -29,9 +29,8 @@ This is free software, licensed under the Apache License, Version 2.0 uci:foreach("wireless", "wifi-iface", function(s) local iface = s.network or "" if iface == trmiface then - local section = s['.name'] + local section = s['.name'] or "" local device = s.device or "" - local mode = s.mode or "" local ssid = s.ssid or "" local encryption = s.encryption or "" local disabled = s.disabled or ""