diff options
author | Jo-Philipp Wich <jo@mein.io> | 2018-06-26 15:24:16 +0200 |
---|---|---|
committer | Jo-Philipp Wich <jo@mein.io> | 2018-06-26 15:24:16 +0200 |
commit | 60c5d15e9eb46016bba7383b103cf95ebb997886 (patch) | |
tree | ae520e6597746e13f48e96bffeb68f5f8a7d7bc9 /modules/luci-mod-admin-full | |
parent | 2efcc53f2e51062e102384a1bc18ea46b5d22c5c (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/luci-mod-admin-full')
-rw-r--r-- | modules/luci-mod-admin-full/luasrc/view/admin_network/switch_status.htm | 2 |
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 d3d07bead..8a42a117e 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) |