diff options
author | Jo-Philipp Wich <jow@openwrt.org> | 2009-06-08 20:40:18 +0000 |
---|---|---|
committer | Jo-Philipp Wich <jow@openwrt.org> | 2009-06-08 20:40:18 +0000 |
commit | 30a15ca081bd84df1c6ac8e4edb500860ff85e86 (patch) | |
tree | c3c06180cb8dfe37b4fe9852b0a021ba086d3239 /modules/admin-full/luasrc/view/admin_status | |
parent | e35dccbc7556e95803efc067dbf8a2a4d2bfd552 (diff) |
modules/admin-full: fix exception in interface status page for devices with an empty ifname for wan (#71)
Diffstat (limited to 'modules/admin-full/luasrc/view/admin_status')
-rw-r--r-- | modules/admin-full/luasrc/view/admin_status/interfaces.htm | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/modules/admin-full/luasrc/view/admin_status/interfaces.htm b/modules/admin-full/luasrc/view/admin_status/interfaces.htm index 482aa0c0c8..5358caeae6 100644 --- a/modules/admin-full/luasrc/view/admin_status/interfaces.htm +++ b/modules/admin-full/luasrc/view/admin_status/interfaces.htm @@ -63,7 +63,7 @@ $Id$ end function get_vlan(i) - return i:match("^%w+%.(%d+)$") + return i and i:match("^%w+%.(%d+)$") end function get_vlan_ports(i) @@ -178,7 +178,7 @@ $Id$ dev = get_ifname(i) vlan = get_vlan(dev) - if devinfo and devinfo[dev] then + if dev and devinfo and devinfo[dev] then %> <h3><%:a_s_if_interface Interface%> <%=i['.name']%></h3> <p style="font-size:90%;padding-left:1em"> |