luci-0.10: merge r7922

This commit is contained in:
Jo-Philipp Wich 2011-11-12 11:31:03 +00:00
parent fdf0bc74e1
commit 4c15e9d73f

View file

@ -1411,8 +1411,9 @@ function wifinet.adminlink(self)
end
function wifinet.get_network(self)
if _uci_real:get("network", self.iwdata.network) == "interface" then
return network(self.iwdata.network)
local net = tostring(self.iwdata.network)
if net and _uci_real:get("network", net) == "interface" then
return network(net)
end
end