From: Dirk Brenken Date: Sun, 21 Oct 2018 06:37:56 +0000 (+0200) Subject: luci-app-travelmate: fix wireless scan X-Git-Url: https://git.librecmc.org/?a=commitdiff_plain;h=9232cee7a447484d86984648c51a846d2ffd45c3;p=oweals%2Fluci.git luci-app-travelmate: fix wireless scan * fix possible crash during wireless scan when no valid WPA label was found Signed-off-by: Dirk Brenken --- 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