Commit f9dff13d authored by Ad Schellevis's avatar Ad Schellevis

(legacy) from crash reports, Warning: Illegal string offset 'vip' in...

(legacy) from crash reports, Warning: Illegal string offset 'vip' in /usr/local/etc/inc/xmlrpc/legacy.inc on line 304
parent 61e6bb5d
...@@ -301,6 +301,7 @@ function restore_config_section_xmlrpc($new_config) ...@@ -301,6 +301,7 @@ function restore_config_section_xmlrpc($new_config)
if (isset($new_config['virtualip']['vip'])) { if (isset($new_config['virtualip']['vip'])) {
$carp_setuped = false; $carp_setuped = false;
$anyproxyarp = false; $anyproxyarp = false;
if (isset($config['virtualip']['vip'])) {
foreach ($config['virtualip']['vip'] as $vip) { foreach ($config['virtualip']['vip'] as $vip) {
if ($vip['mode'] == "carp" && isset($oldvips["{$vip['interface']}_vip{$vip['vhid']}"])) { if ($vip['mode'] == "carp" && isset($oldvips["{$vip['interface']}_vip{$vip['vhid']}"])) {
if ($oldvips["{$vip['interface']}_vip{$vip['vhid']}"] == "{$vip['password']}{$vip['advskew']}{$vip['subnet']}{$vip['subnet_bits']}{$vip['advbase']}") { if ($oldvips["{$vip['interface']}_vip{$vip['vhid']}"] == "{$vip['password']}{$vip['advskew']}{$vip['subnet']}{$vip['subnet_bits']}{$vip['advbase']}") {
...@@ -335,6 +336,7 @@ function restore_config_section_xmlrpc($new_config) ...@@ -335,6 +336,7 @@ function restore_config_section_xmlrpc($new_config)
break; break;
} }
} }
}
if ($carp_setuped) { if ($carp_setuped) {
interfaces_carp_setup(); interfaces_carp_setup();
} }
......
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