diff options
author | thompsa <andy@fud.org.nz> | 2010-05-15 17:44:23 +1200 |
---|---|---|
committer | thompsa <andy@fud.org.nz> | 2010-05-15 18:13:51 +1200 |
commit | bd9a69432919d9d8022baca75d295aaabc0e00ef (patch) | |
tree | c1df5dffb6fa46756f1ca0e56272edba417a1f7f /config | |
parent | 816e9cbc46ef10babd376eed44985343abfecb86 (diff) | |
download | pfsense-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')
-rwxr-xr-x | config/haproxy-dev/haproxy_global.php | 3 |
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 |