summaryrefslogtreecommitdiffhomepage
path: root/modules
diff options
context:
space:
mode:
authorJo-Philipp Wich <jo@mein.io>2018-06-26 15:24:16 +0200
committerJo-Philipp Wich <jo@mein.io>2018-06-26 15:24:16 +0200
commit60c5d15e9eb46016bba7383b103cf95ebb997886 (patch)
treeae520e6597746e13f48e96bffeb68f5f8a7d7bc9 /modules
parent2efcc53f2e51062e102384a1bc18ea46b5d22c5c (diff)
luci-mod-admin-full: fix possible switch status layout bug
In some cases we might get status information for more ports than which are actually usable, prevent overflowing the port status row in this case. Reported-at: https://forum.lede-project.org/t/x/15897/14 Signed-off-by: Jo-Philipp Wich <jo@mein.io>
Diffstat (limited to 'modules')
-rw-r--r--modules/luci-mod-admin-full/luasrc/view/admin_network/switch_status.htm2
1 files changed, 1 insertions, 1 deletions
diff --git a/modules/luci-mod-admin-full/luasrc/view/admin_network/switch_status.htm b/modules/luci-mod-admin-full/luasrc/view/admin_network/switch_status.htm
index d3d07bead9..8a42a117e1 100644
--- a/modules/luci-mod-admin-full/luasrc/view/admin_network/switch_status.htm
+++ b/modules/luci-mod-admin-full/luasrc/view/admin_network/switch_status.htm
@@ -35,7 +35,7 @@
{
var th = tr.childNodes[j+1];
- if (!th)
+ if (!th || !th.hasAttribute('data-name'))
continue;
if (ports[j].link)