From 14facbd91d3179c9a2c677e86b5425f93ba6b4b3 Mon Sep 17 00:00:00 2001 From: Jo-Philipp Wich Date: Wed, 26 Sep 2012 17:38:14 +0000 Subject: modules/admin-full: cope with undefined scan list in wifi_join --- modules/admin-full/luasrc/view/admin_network/wifi_join.htm | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'modules/admin-full/luasrc') diff --git a/modules/admin-full/luasrc/view/admin_network/wifi_join.htm b/modules/admin-full/luasrc/view/admin_network/wifi_join.htm index d7376e7850..f3b6dddefc 100644 --- a/modules/admin-full/luasrc/view/admin_network/wifi_join.htm +++ b/modules/admin-full/luasrc/view/admin_network/wifi_join.htm @@ -82,7 +82,7 @@ $Id$ local s = { } for i = 1, times do - for k, v in ipairs(iw.scanlist) do + for k, v in ipairs(iw.scanlist or { }) do if not s[v.bssid] then l[#l+1] = v s[v.bssid] = true -- cgit v1.2.3