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 6bf159d66478c080001364e801260e4e43847c79..2a2a35984be4c7a09614a4ed096a9e893e61a07c 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;