projects
/
project
/
luci.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
luci-mod-admin-full: properly skip over unused switch ports
[project/luci.git]
/
modules
/
luci-mod-admin-full
/
luasrc
/
view
/
admin_network
/
switch_status.htm
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
f740a4a
..
96fbffd
100644
(file)
--- 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
@@
-17,6
+17,9
@@
{
var th = document.getElementById('portstatus-' + switches[i] + '-' + j);
{
var th = document.getElementById('portstatus-' + switches[i] + '-' + j);
+ if (!th)
+ continue;
+
if (ports[j].link)
{
th.innerHTML = String.format(
if (ports[j].link)
{
th.innerHTML = String.format(