diff options
author | Jo-Philipp Wich <jow@openwrt.org> | 2014-06-13 13:57:00 +0200 |
---|---|---|
committer | Jo-Philipp Wich <jow@openwrt.org> | 2014-06-13 13:57:00 +0200 |
commit | b7bde2e0ae9f21a3726fd6567e2b5eacbb8dbb92 (patch) | |
tree | 876be8b12299c1d361eb400123a479e89536b2a3 | |
parent | 7add1278c5fcbc24bb5773fbb70fb0cf7407b863 (diff) | |
download | luci2-ui-b7bde2e0ae9f21a3726fd6567e2b5eacbb8dbb92.tar.gz |
luci2: fix undefined ifname exception when processing wireless status with disabled vifs
Signed-off-by: Jo-Philipp Wich <jow@openwrt.org>
-rw-r--r-- | luci2/htdocs/luci2/luci2.js | 2 |
1 files changed, 1 insertions, 1 deletions
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; |