git.99rst.org
/
openwrt-luci.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
| inline |
side by side
(parent:
fdbb417
)
luci-mod-admin-full: fix crash on wireless when no networks are declared
author
Jo-Philipp Wich
<redacted>
Sat, 19 May 2018 21:28:14 +0000
(23:28 +0200)
committer
Jo-Philipp Wich
<redacted>
Sat, 19 May 2018 21:28:14 +0000
(23:28 +0200)
Signed-off-by: Jo-Philipp Wich <redacted>
modules/luci-mod-admin-full/luasrc/controller/admin/network.lua
patch
|
blob
|
history
diff --git
a/modules/luci-mod-admin-full/luasrc/controller/admin/network.lua
b/modules/luci-mod-admin-full/luasrc/controller/admin/network.lua
index ab6db4fefb10376df8c46a59591bd93888137448..a26d3d14e1d9ae5ede3379f59bab70f9d0100c1b 100644
(file)
--- a/
modules/luci-mod-admin-full/luasrc/controller/admin/network.lua
+++ b/
modules/luci-mod-admin-full/luasrc/controller/admin/network.lua
@@
-330,9
+330,11
@@
function wifi_status(devs)
local s = require "luci.tools.status"
local rv = { }
- local dev
- for dev in devs:gmatch("[%w%.%-]+") do
- rv[#rv+1] = s.wifi_network(dev)
+ if type(devs) == "string" then
+ local dev
+ for dev in devs:gmatch("[%w%.%-]+") do
+ rv[#rv+1] = s.wifi_network(dev)
+ end
end
if #rv > 0 then
git clone https://git.99rst.org/PROJECT