diff options
author | Jo-Philipp Wich <jow@openwrt.org> | 2011-09-25 22:58:17 +0000 |
---|---|---|
committer | Jo-Philipp Wich <jow@openwrt.org> | 2011-09-25 22:58:17 +0000 |
commit | 8eb93354138685a83a3ae9994be770ceb63bf9fe (patch) | |
tree | ce9cf122b477d5459b3c3fc138838492b055cb37 /modules/admin-full/luasrc/controller/admin | |
parent | 1f1377fdc461ef8f4faad7a95a55a3eb9431eb38 (diff) |
modules/admin-full: fix two issues observed on a virgin install
Diffstat (limited to 'modules/admin-full/luasrc/controller/admin')
-rw-r--r-- | modules/admin-full/luasrc/controller/admin/network.lua | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/modules/admin-full/luasrc/controller/admin/network.lua b/modules/admin-full/luasrc/controller/admin/network.lua index e701d1db8..d151a9a59 100644 --- a/modules/admin-full/luasrc/controller/admin/network.lua +++ b/modules/admin-full/luasrc/controller/admin/network.lua @@ -247,7 +247,7 @@ function iface_status() } end - for _, device in ipairs(net:get_interfaces()) do + for _, device in ipairs(net:get_interfaces() or {}) do data.subdevices[#data.subdevices+1] = { name = device:shortname(), type = device:type(), |