modules/admin-full: cope with undefined scan list in wifi_join
[project/luci.git] / modules / admin-full / luasrc / view / admin_network / wifi_join.htm
index d7376e7..f3b6ddd 100644 (file)
@@ -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