diff options
Diffstat (limited to 'packages/carp_status.php')
-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) { |