Commit 2a20897b authored by Ad Schellevis's avatar Ad Schellevis

(legacy) fix crashreport " PHP Warning: Illegal string offset 'vip' in...

(legacy) fix crashreport " PHP Warning:  Illegal string offset 'vip' in /usr/local/www/carp_status.php on line 124"
parent a7bee644
...@@ -121,7 +121,7 @@ include("head.inc"); ...@@ -121,7 +121,7 @@ include("head.inc");
<form action="<?=$_SERVER['REQUEST_URI'];?>" method="post"> <form action="<?=$_SERVER['REQUEST_URI'];?>" method="post">
<?php <?php
$carpcount = 0; $carpcount = 0;
if(is_array($config['virtualip']['vip'])) { if(isset($config['virtualip']['vip'])) {
foreach($config['virtualip']['vip'] as $carp) { foreach($config['virtualip']['vip'] as $carp) {
if ($carp['mode'] == "carp") { if ($carp['mode'] == "carp") {
$carpcount++; $carpcount++;
......
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