Commit 453ee9c1 authored by Ad Schellevis's avatar Ad Schellevis

whitespace

...@@ -40,11 +40,11 @@ function find_last_used_vhid() { ...@@ -40,11 +40,11 @@ function find_last_used_vhid() {
global $config; global $config;
$vhid = 0; $vhid = 0;
if (isset($config['virtualip']['vip'])) { if (isset($config['virtualip']['vip'])) {
foreach($config['virtualip']['vip'] as $vip) { foreach($config['virtualip']['vip'] as $vip) {
if(!empty($vip['vhid']) && $vip['vhid'] > $vhid) { if(!empty($vip['vhid']) && $vip['vhid'] > $vhid) {
$vhid = $vip['vhid']; $vhid = $vip['vhid'];
} }
} }
} }
return $vhid; return $vhid;
} }
...@@ -109,12 +109,12 @@ if ($_SERVER['REQUEST_METHOD'] === 'GET') { ...@@ -109,12 +109,12 @@ if ($_SERVER['REQUEST_METHOD'] === 'GET') {
$input_errors[] = gettext("A valid IP address must be specified."); $input_errors[] = gettext("A valid IP address must be specified.");
} else { } else {
if ($pconfig['mode'] == 'carp') { if ($pconfig['mode'] == 'carp') {
$ignore_if = $pconfig['interface']."_vip{$pconfig['vhid']}"; $ignore_if = $pconfig['interface']."_vip{$pconfig['vhid']}";
} else { } else {
$ignore_if = $pconfig['interface']; $ignore_if = $pconfig['interface'];
} }
if (is_ipaddr_configured($pconfig['subnet'], $ignore_if)) { if (is_ipaddr_configured($pconfig['subnet'], $ignore_if)) {
$input_errors[] = gettext("This IP address is being used by another interface or VIP."); $input_errors[] = gettext("This IP address is being used by another interface or VIP.");
} }
} }
} }
......
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