From f2e4a6665b257fbcdfd3d7fef0f00a28590738c8 Mon Sep 17 00:00:00 2001 From: Jo-Philipp Wich Date: Wed, 13 May 2009 18:50:12 +0000 Subject: libs/sys: fix checking for empty table --- libs/sys/luasrc/sys.lua | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'libs/sys') 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 -- cgit v1.2.3