From b7bde2e0ae9f21a3726fd6567e2b5eacbb8dbb92 Mon Sep 17 00:00:00 2001 From: Jo-Philipp Wich Date: Fri, 13 Jun 2014 13:57:00 +0200 Subject: luci2: fix undefined ifname exception when processing wireless status with disabled vifs Signed-off-by: Jo-Philipp Wich --- luci2/htdocs/luci2/luci2.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/luci2/htdocs/luci2/luci2.js b/luci2/htdocs/luci2/luci2.js index 6bf159d..2a2a359 100644 --- a/luci2/htdocs/luci2/luci2.js +++ b/luci2/htdocs/luci2/luci2.js @@ -1918,7 +1918,7 @@ function LuCI2() var ifcs = self.rpcCache.wifistate[s.device].interfaces; for (var ifc in ifcs) { - if (ifcs[ifc].section == sid) + if (ifcs[ifc].section == sid && ifcs[ifc].ifname) { ifname = ifcs[ifc].ifname; break; -- cgit v1.2.1