modules/admin-full: fix two issues observed on a virgin install

This commit is contained in:
Jo-Philipp Wich 2011-09-25 22:58:17 +00:00
parent 1f1377fdc4
commit 8eb9335413
2 changed files with 3 additions and 3 deletions

View file

@ -247,7 +247,7 @@ function iface_status()
} }
end end
for _, device in ipairs(net:get_interfaces()) do for _, device in ipairs(net:get_interfaces() or {}) do
data.subdevices[#data.subdevices+1] = { data.subdevices[#data.subdevices+1] = {
name = device:shortname(), name = device:shortname(),
type = device:type(), type = device:type(),

View file

@ -74,9 +74,9 @@ $Id$
{ {
if (ifcs) if (ifcs)
{ {
for (var i = 0; i < ifcs.length; i++) for (var idx = 0; idx < ifcs.length; idx++)
{ {
var ifc = ifcs[i]; var ifc = ifcs[idx];
var html = ''; var html = '';
var s = document.getElementById(ifc.id + '-ifc-devices'); var s = document.getElementById(ifc.id + '-ifc-devices');