summaryrefslogtreecommitdiffhomepage
path: root/modules/admin-full/luasrc/view
diff options
context:
space:
mode:
authorJo-Philipp Wich <jow@openwrt.org>2011-07-31 12:37:22 +0000
committerJo-Philipp Wich <jow@openwrt.org>2011-07-31 12:37:22 +0000
commit563598a9768f18257c8f5a65c77d1ddaf899414e (patch)
tree486634c222ee139caaff75e922927038f5652769 /modules/admin-full/luasrc/view
parent01cd04fc7813b515be6772cc1f59939b30d7ff07 (diff)
modules/admin-full: fix "undefined" netmask display on main status page
Diffstat (limited to 'modules/admin-full/luasrc/view')
-rw-r--r--modules/admin-full/luasrc/view/admin_status/index.htm2
1 files changed, 1 insertions, 1 deletions
diff --git a/modules/admin-full/luasrc/view/admin_status/index.htm b/modules/admin-full/luasrc/view/admin_status/index.htm
index 16cd32a2c1..aab8ead99c 100644
--- a/modules/admin-full/luasrc/view/admin_status/index.htm
+++ b/modules/admin-full/luasrc/view/admin_status/index.htm
@@ -140,7 +140,7 @@ $Id$
'<strong><%:Gateway%>: </strong>%s<br />',
ifc.proto,
(ifc.ipaddr) ? ifc.ipaddr : '0.0.0.0',
- (ifc.netmask != ifc.ipaddr) ? ifc.netmask : '255.255.255.255',
+ (ifc.netmask && ifc.netmask != ifc.ipaddr) ? ifc.netmask : '255.255.255.255',
(ifc.gwaddr) ? ifc.gwaddr : '0.0.0.0'
);