diff options
author | Scott Ullrich <sullrich@pfsense.org> | 2005-05-25 01:50:06 +0000 |
---|---|---|
committer | Scott Ullrich <sullrich@pfsense.org> | 2005-05-25 01:50:06 +0000 |
commit | 778588fc1045ed8dc1fccb060a93bd856c77cca8 (patch) | |
tree | 41d5f2837d59339d188a81c9e8c7573195038520 | |
parent | a8ae43db41fffae35ab9944ae7b3c91fa182ca6a (diff) | |
download | pfsense-packages-778588fc1045ed8dc1fccb060a93bd856c77cca8.tar.gz pfsense-packages-778588fc1045ed8dc1fccb060a93bd856c77cca8.tar.bz2 pfsense-packages-778588fc1045ed8dc1fccb060a93bd856c77cca8.zip |
Gracefully report that no carp interfaces are defined.
-rw-r--r-- | packages/carp_status.php | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/packages/carp_status.php b/packages/carp_status.php index 764cdd16..6b360c01 100644 --- a/packages/carp_status.php +++ b/packages/carp_status.php @@ -103,6 +103,11 @@ 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) { |