diff options
author | Jo-Philipp Wich <jow@openwrt.org> | 2009-05-13 18:50:12 +0000 |
---|---|---|
committer | Jo-Philipp Wich <jow@openwrt.org> | 2009-05-13 18:50:12 +0000 |
commit | f2e4a6665b257fbcdfd3d7fef0f00a28590738c8 (patch) | |
tree | 98f31a856ac73c36a2f1593f15e322ed526d2a09 /libs/sys/luasrc | |
parent | 4856c1ea23d96f74b28921245e673ad6b95ab662 (diff) |
libs/sys: fix checking for empty table
Diffstat (limited to 'libs/sys/luasrc')
-rw-r--r-- | libs/sys/luasrc/sys.lua | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/libs/sys/luasrc/sys.lua b/libs/sys/luasrc/sys.lua index d6062482c..ad80ae5ba 100644 --- a/libs/sys/luasrc/sys.lua +++ b/libs/sys/luasrc/sys.lua @@ -701,7 +701,7 @@ function wifi.channels(iface) fd:close() end - if #cns == 0 then + if not ((pairs(cns))(cns)) then cns = { 2.412, 2.417, 2.422, 2.427, 2.432, 2.437, 2.442, 2.447, 2.452, 2.457, 2.462 |