From 3cdccaa76ca5bc7d337f53923cbff31c5065acf1 Mon Sep 17 00:00:00 2001 From: Jo-Philipp Wich Date: Sat, 27 Mar 2010 17:42:00 +0000 Subject: [PATCH] luci-0.9: merge r5952 --- modules/admin-full/luasrc/model/cbi/admin_network/vlan.lua | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/modules/admin-full/luasrc/model/cbi/admin_network/vlan.lua b/modules/admin-full/luasrc/model/cbi/admin_network/vlan.lua index f71561dba..a411b0487 100644 --- a/modules/admin-full/luasrc/model/cbi/admin_network/vlan.lua +++ b/modules/admin-full/luasrc/model/cbi/admin_network/vlan.lua @@ -65,7 +65,7 @@ m.uci:foreach("network", "switch", end s.create = function(self, section) - local n = tonumber(section) + local n = tonumber(section and section:match("(%d+)")) if n ~= nil and n >= 0 then local sn = "%s_%d" %{ x['.name'], n } local rv = TypedSection.create(self, sn) -- 2.25.1