aboutsummaryrefslogtreecommitdiffstats
path: root/packages
diff options
context:
space:
mode:
Diffstat (limited to 'packages')
-rw-r--r--packages/carp_status.php10
1 files changed, 5 insertions, 5 deletions
diff --git a/packages/carp_status.php b/packages/carp_status.php
index 6b360c01..bf4c8ba9 100644
--- a/packages/carp_status.php
+++ b/packages/carp_status.php
@@ -90,6 +90,11 @@ include("fbegin.inc");
$carp_enabled = true;
echo "<input type=\"submit\" name=\"disablecarp\" id=\"disablecarp\" value=\"Disable Carp\">";
}
+
+if(!is_array($config['installedpackages']['carp']['config'])) {
+ echo "Could not locate any defined CARP interfaces.";
+ exit;
+}
?>
<p>
@@ -103,11 +108,6 @@ include("fbegin.inc");
</tr>
<?php
-if(!is_array($config['installedpackages']['carp']['config'])) {
- echo "<tr><td></td></tr><tr><td></td></tr>Could not locate any defined CARP interfaces.<tr><td></td></tr><tr><td></td></tr></table>";
- exit;
-}
-
if($config['installedpackages']['carp']['config'] <> "")
$carpint=0;
foreach($config['installedpackages']['carp']['config'] as $carp) {