diff options
author | Dirk Brenken <dev@brenken.org> | 2018-10-21 08:37:56 +0200 |
---|---|---|
committer | Dirk Brenken <dev@brenken.org> | 2018-10-21 08:37:56 +0200 |
commit | 9232cee7a447484d86984648c51a846d2ffd45c3 (patch) | |
tree | 2d9510f648444f0d460e38b8afe40b53438fce87 /applications/luci-app-travelmate/luasrc | |
parent | a2a51109029cc753be026320b259b5aa919245cf (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.htm | 2 |
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 ab3fe77fb..67568f179 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 |