Commit 7d2bd0c7 authored by Franco Fichtner's avatar Franco Fichtner

carp: fix a crash report

parent 9efc4138
......@@ -4094,7 +4094,7 @@ function convert_friendly_interface_to_friendly_descr($interface) {
$ifdesc = strtoupper($config['interfaces'][$interface]['descr']);
break;
} else if (stristr($interface, "_vip")) {
if (is_array($config['virtualip']['vip'])) {
if (isset($config['virtualip']['vip'])) {
foreach ($config['virtualip']['vip'] as $counter => $vip) {
if ($vip['mode'] == "carp") {
if ($interface == "{$vip['interface']}_vip{$vip['vhid']}")
......
......@@ -39,7 +39,7 @@ $carp_enabled = get_carp_status();
?>
<table class="table table-striped" width="100%" border="0" cellspacing="0" cellpadding="0" summary="carp status">
<?php
if (is_array($config['virtualip']['vip'])) {
if (isset($config['virtualip']['vip'])) {
$carpint=0;
foreach ($config['virtualip']['vip'] as $carp) {
if ($carp['mode'] != "carp") {
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment