summaryrefslogtreecommitdiffhomepage
path: root/applications/luci-app-travelmate/luasrc
diff options
context:
space:
mode:
authorDirk Brenken <dev@brenken.org>2018-10-21 08:37:56 +0200
committerDirk Brenken <dev@brenken.org>2018-10-21 08:37:56 +0200
commit9232cee7a447484d86984648c51a846d2ffd45c3 (patch)
tree2d9510f648444f0d460e38b8afe40b53438fce87 /applications/luci-app-travelmate/luasrc
parenta2a51109029cc753be026320b259b5aa919245cf (diff)
luci-app-travelmate: fix wireless scan
* fix possible crash during wireless scan when no valid WPA label was found Signed-off-by: Dirk Brenken <dev@brenken.org>
Diffstat (limited to 'applications/luci-app-travelmate/luasrc')
-rw-r--r--applications/luci-app-travelmate/luasrc/view/travelmate/wifi_scan.htm2
1 files changed, 1 insertions, 1 deletions
diff --git a/applications/luci-app-travelmate/luasrc/view/travelmate/wifi_scan.htm b/applications/luci-app-travelmate/luasrc/view/travelmate/wifi_scan.htm
index ab3fe77fbc..67568f179e 100644
--- a/applications/luci-app-travelmate/luasrc/view/travelmate/wifi_scan.htm
+++ b/applications/luci-app-travelmate/luasrc/view/travelmate/wifi_scan.htm
@@ -18,7 +18,7 @@ This is free software, licensed under the Apache License, Version 2.0
if info.wep == true then
return translate("WEP")
elseif info.wpa > 0 then
- return "%s (%s/%s)" %{label[info.wpa], table.concat(info.auth_suites), table.concat(info.group_ciphers)}
+ return "%s (%s/%s)" %{label[info.wpa] or translate("Unknown"), table.concat(info.auth_suites), table.concat(info.group_ciphers)}
elseif info.enabled then
return translate("Unknown")
else