aboutsummaryrefslogtreecommitdiffstats
path: root/config/haproxy-dev
diff options
context:
space:
mode:
authorthompsa <andy@fud.org.nz>2010-05-15 17:44:23 +1200
committerthompsa <andy@fud.org.nz>2010-05-15 18:13:51 +1200
commitbd9a69432919d9d8022baca75d295aaabc0e00ef (patch)
treec1df5dffb6fa46756f1ca0e56272edba417a1f7f /config/haproxy-dev
parent816e9cbc46ef10babd376eed44985343abfecb86 (diff)
downloadpfsense-packages-bd9a69432919d9d8022baca75d295aaabc0e00ef.tar.gz
pfsense-packages-bd9a69432919d9d8022baca75d295aaabc0e00ef.tar.bz2
pfsense-packages-bd9a69432919d9d8022baca75d295aaabc0e00ef.zip
only check carp_int againt carpdev if its actually defined
Diffstat (limited to 'config/haproxy-dev')
-rwxr-xr-xconfig/haproxy-dev/haproxy_global.php3
1 files changed, 2 insertions, 1 deletions
diff --git a/config/haproxy-dev/haproxy_global.php b/config/haproxy-dev/haproxy_global.php
index 7f4ce483..1ef28005 100755
--- a/config/haproxy-dev/haproxy_global.php
+++ b/config/haproxy-dev/haproxy_global.php
@@ -291,7 +291,8 @@ function enable_change(enable_change) {
$ipaddress = $carp['subnet'];
$carp_int = find_carp_interface($ipaddress);
?>
- <option value="<?=$carp_int;?>" <?php if ($carp_int == $pconfig['carpdev']) echo "selected"; ?>>
+ <option value="<?=$carp_int;?>"
+ <?php if (isset($pconfig['carpdev']) && $carp_int == $pconfig['carpdev']) echo "selected"; ?>>
<?=$carp_int;?> (<?=$ipaddress;?>)
</option>
<?php