luci2: fix undefined ifname exception when processing wireless status with disabled...
authorJo-Philipp Wich <jow@openwrt.org>
Fri, 13 Jun 2014 11:57:00 +0000 (13:57 +0200)
committerJo-Philipp Wich <jow@openwrt.org>
Fri, 13 Jun 2014 11:57:00 +0000 (13:57 +0200)
Signed-off-by: Jo-Philipp Wich <jow@openwrt.org>
luci2/htdocs/luci2/luci2.js

index 6bf159d..2a2a359 100644 (file)
@@ -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;