From: Jo-Philipp Wich Date: Fri, 13 Jun 2014 11:57:00 +0000 (+0200) Subject: luci2: fix undefined ifname exception when processing wireless status with disabled... X-Git-Url: http://git.archive.openwrt.org/?p=project%2Fluci2%2Fui.git;a=commitdiff_plain;h=b7bde2e0ae9f21a3726fd6567e2b5eacbb8dbb92;hp=7add1278c5fcbc24bb5773fbb70fb0cf7407b863 luci2: fix undefined ifname exception when processing wireless status with disabled vifs Signed-off-by: Jo-Philipp Wich --- 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;