From 19ed162443aba106bfa51f88fc082af7f09738ab Mon Sep 17 00:00:00 2001 From: Ermal Date: Mon, 13 Jun 2011 15:04:59 +0000 Subject: unset after checking that no reconfiguring is needed. --- usr/local/www/xmlrpc.php | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) (limited to 'usr/local/www') diff --git a/usr/local/www/xmlrpc.php b/usr/local/www/xmlrpc.php index 1689b85..95f4d63 100755 --- a/usr/local/www/xmlrpc.php +++ b/usr/local/www/xmlrpc.php @@ -198,11 +198,13 @@ function restore_config_section_xmlrpc($raw_params) { $anyproxyarp = false; foreach ($config['virtualip']['vip'] as $vip) { if (isset($oldvips[$vip['vhid']])) { - unset($oldvips[$vip['vhid']]); if ($oldvips[$vip['vhid']] == "{$vip['password']}{$vip['advskew']}{$vip['subnet']}{$vip['subnet_bits']}{$vip['advbase']}") { - if (does_interface_exist("vip{$vip['vhid']}")) + if (does_interface_exist("vip{$vip['vhid']}")) { + unset($oldvips[$vip['vhid']]); continue; // Skip reconfiguring this vips since nothing has changed. + } } + unset($oldvips[$vip['vhid']]); } switch ($vip['mode']) { -- cgit v1.1