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 b0153b7aaaddc5b735d55d1e486a2663e671704c..2b8f12ccc2c0f2ad3fc5e554ef81056ca4a5585a 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>