aboutsummaryrefslogtreecommitdiffstats
path: root/config/haproxy-dev
diff options
context:
space:
mode:
authorthompsa <andy@fud.org.nz>2010-02-11 12:53:42 +1300
committerthompsa <andy@fud.org.nz>2010-02-11 12:53:42 +1300
commitb71afe21157d55a270b84e22f025aa6455d286ce (patch)
tree1f9e0956f1b5b0c4e27cbad06c655b2f09ea4e0e /config/haproxy-dev
parent2c0838d6a382874e8aad48af6c5f7209e93be987 (diff)
downloadpfsense-packages-b71afe21157d55a270b84e22f025aa6455d286ce.tar.gz
pfsense-packages-b71afe21157d55a270b84e22f025aa6455d286ce.tar.bz2
pfsense-packages-b71afe21157d55a270b84e22f025aa6455d286ce.zip
disable the row addition if no acl options are available
Diffstat (limited to 'config/haproxy-dev')
-rwxr-xr-xconfig/haproxy-dev/haproxy_listeners_edit.php2
1 files changed, 2 insertions, 0 deletions
diff --git a/config/haproxy-dev/haproxy_listeners_edit.php b/config/haproxy-dev/haproxy_listeners_edit.php
index 6f6c60a4..326a5a20 100755
--- a/config/haproxy-dev/haproxy_listeners_edit.php
+++ b/config/haproxy-dev/haproxy_listeners_edit.php
@@ -289,6 +289,8 @@ include("head.inc");
seltext = "<?php echo haproxy_acl_select('https');?>";
else
seltext = "<?php echo haproxy_acl_select('http');?>";
+ if (seltext == '')
+ return;
tbody = d.getElementById(tableId).getElementsByTagName("tbody").item(0);
tr = d.createElement("tr");