From: Jo-Philipp Wich Date: Thu, 4 Aug 2016 09:42:40 +0000 (+0200) Subject: luci-mod-admin-full: status page formatting fix X-Git-Url: http://git.lede-project.org./?a=commitdiff_plain;h=bd4534496a9e3fc1f1c33b7e8aafb7c41f2afad2;p=project%2Fluci.git luci-mod-admin-full: status page formatting fix Display a question mark for undefined SSID and BSSID strings. Signed-off-by: Jo-Philipp Wich --- diff --git a/modules/luci-mod-admin-full/luasrc/view/admin_status/index.htm b/modules/luci-mod-admin-full/luasrc/view/admin_status/index.htm index 8c3e01e603..eb46488062 100644 --- a/modules/luci-mod-admin-full/luasrc/view/admin_status/index.htm +++ b/modules/luci-mod-admin-full/luasrc/view/admin_status/index.htm @@ -471,7 +471,7 @@ '<%:Bitrate%>: %s <%:Mbit/s%>
', icon, net.signal, net.noise, net.quality, - net.link, net.ssid, + net.link, net.ssid || '?', net.mode, net.channel, net.frequency, net.bitrate || '?' @@ -482,7 +482,7 @@ s += String.format( '<%:BSSID%>: %s
' + '<%:Encryption%>: %s', - net.bssid, + net.bssid || '?', net.encryption ); }