From 9232cee7a447484d86984648c51a846d2ffd45c3 Mon Sep 17 00:00:00 2001 From: Dirk Brenken Date: Sun, 21 Oct 2018 08:37:56 +0200 Subject: [PATCH] luci-app-travelmate: fix wireless scan * fix possible crash during wireless scan when no valid WPA label was found Signed-off-by: Dirk Brenken --- .../luci-app-travelmate/luasrc/view/travelmate/wifi_scan.htm | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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 -- 2.25.1