modules/admin-full: cope with empty targets in iptables status page
authorJo-Philipp Wich <jow@openwrt.org>
Sun, 7 Jun 2009 13:00:26 +0000 (13:00 +0000)
committerJo-Philipp Wich <jow@openwrt.org>
Sun, 7 Jun 2009 13:00:26 +0000 (13:00 +0000)
modules/admin-full/luasrc/view/admin_status/iptables.htm

index b0153b7..2b8f12c 100644 (file)
@@ -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>