aboutsummaryrefslogtreecommitdiffstats
path: root/config/haproxy-dev/haproxy_global.php
diff options
context:
space:
mode:
Diffstat (limited to 'config/haproxy-dev/haproxy_global.php')
-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