diff options
Diffstat (limited to 'src/usr/local/www/status_carp.php')
-rw-r--r-- | src/usr/local/www/status_carp.php | 13 |
1 files changed, 7 insertions, 6 deletions
diff --git a/src/usr/local/www/status_carp.php b/src/usr/local/www/status_carp.php index b6a3d93..c1516ad 100644 --- a/src/usr/local/www/status_carp.php +++ b/src/usr/local/www/status_carp.php @@ -152,8 +152,9 @@ $pgtitle = array(gettext("Status"), gettext("CARP")); $shortcut_section = "carp"; include("head.inc"); -if ($savemsg) +if ($savemsg) { print_info_box($savemsg, 'success'); +} $carpcount = 0; if (is_array($config['virtualip']['vip'])) { @@ -177,15 +178,15 @@ if ($carpcount == 0) { '<a href="system_hasync.php" class="alert-link">' . gettext("You can configure high availability sync settings here") . '</a>'); -} else -{ +} else { ?> <form action="status_carp.php" method="post"> <?php - if($status > 0) + if ($status > 0) { $carp_enabled = true; - else + } else { $carp_enabled = false; + } // Sadly this needs to be here so that it is inside the form if ($carp_detected_problems > 0) { @@ -231,7 +232,7 @@ if ($carpcount == 0) { $vhid = $carp['vhid']; $status = get_carp_interface_status("_vip{$carp['uniqid']}"); - if($carp_enabled == false) { + if ($carp_enabled == false) { $icon = 'times-circle'; $status = "DISABLED"; } else { |