summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJo-Philipp Wich <jow@openwrt.org>2011-11-12 11:31:03 +0000
committerJo-Philipp Wich <jow@openwrt.org>2011-11-12 11:31:03 +0000
commit4c15e9d73fcb3b8111b8afecf42ac6c18bce2020 (patch)
tree6557011fa63526dd350b14819bf148e459f8668d
parentfdf0bc74e1c8266fdfeba7a45f8e750b2db51cac (diff)
luci-0.10: merge r7922
-rw-r--r--libs/core/luasrc/model/network.lua5
1 files changed, 3 insertions, 2 deletions
diff --git a/libs/core/luasrc/model/network.lua b/libs/core/luasrc/model/network.lua
index eff84f8108..61da9dfd04 100644
--- a/libs/core/luasrc/model/network.lua
+++ b/libs/core/luasrc/model/network.lua
@@ -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