summaryrefslogtreecommitdiffhomepage
diff options
context:
space:
mode:
authorJo-Philipp Wich <jow@openwrt.org>2009-06-07 13:00:26 +0000
committerJo-Philipp Wich <jow@openwrt.org>2009-06-07 13:00:26 +0000
commit1d313c270777db34eeeae103ab3ae16ef636b603 (patch)
tree0e63a1a303d055106cadf6b81edaeaf9bb8c5119
parent99c213eff8a779463e3dbf695c9b4616a7beca42 (diff)
modules/admin-full: cope with empty targets in iptables status page
-rw-r--r--modules/admin-full/luasrc/view/admin_status/iptables.htm2
1 files changed, 1 insertions, 1 deletions
diff --git a/modules/admin-full/luasrc/view/admin_status/iptables.htm b/modules/admin-full/luasrc/view/admin_status/iptables.htm
index b0153b7aa..2b8f12ccc 100644
--- a/modules/admin-full/luasrc/view/admin_status/iptables.htm
+++ b/modules/admin-full/luasrc/view/admin_status/iptables.htm
@@ -99,7 +99,7 @@ $Id$
<td><%=rule.index%></td>
<td><%=rule.packets%></td>
<td><%=wba.byte_format(rule.bytes)%></td>
- <td><%=link_target(tbl, rule.target)%></td>
+ <td><%=rule.target and link_target(tbl, rule.target) or "-"%></td>
<td><%=rule.protocol%></td>
<td><%=rule.flags%></td>
<td><%=link_iface(rule.inputif)%></td>