From 3358db7fafa8041f30f1a8dd2a4898be0377de7f Mon Sep 17 00:00:00 2001 From: Jo-Philipp Wich Date: Mon, 8 Jun 2009 20:40:55 +0000 Subject: [PATCH] luci-0.8: merge r4809 --- modules/admin-full/luasrc/view/admin_status/interfaces.htm | 4 ++-- 1 file 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 482aa0c0c..5358caeae 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 %>

<%:a_s_if_interface Interface%> <%=i['.name']%>

-- 2.25.1