luci-0.10: merge r7922
This commit is contained in:
parent
fdf0bc74e1
commit
4c15e9d73f
1 changed files with 3 additions and 2 deletions
|
@ -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
|
||||
|
||||
|
|
Loading…
Reference in a new issue