summaryrefslogtreecommitdiffstats
path: root/etc/inc/upgrade_config.inc
diff options
context:
space:
mode:
authorRenato Botelho <garga@FreeBSD.org>2013-12-24 15:08:52 -0200
committerRenato Botelho <garga@FreeBSD.org>2013-12-24 15:27:47 -0200
commitfd34b8b5c636c069d72da2396735033c9d924f34 (patch)
treef9722500162d72565ceb47006d6dd898d76db4e5 /etc/inc/upgrade_config.inc
parent59257969adf40d5e901a6bee9d89dfcba9d28859 (diff)
downloadpfsense-fd34b8b5c636c069d72da2396735033c9d924f34.zip
pfsense-fd34b8b5c636c069d72da2396735033c9d924f34.tar.gz
Fix syntax
Diffstat (limited to 'etc/inc/upgrade_config.inc')
-rw-r--r--etc/inc/upgrade_config.inc4
1 files changed, 2 insertions, 2 deletions
diff --git a/etc/inc/upgrade_config.inc b/etc/inc/upgrade_config.inc
index 0ac1769..f1053b2 100644
--- a/etc/inc/upgrade_config.inc
+++ b/etc/inc/upgrade_config.inc
@@ -3270,11 +3270,11 @@ function upgrade_105_to_106() {
if (is_array($config['virtualip']) && is_array($config['virtualip']['vip'])) {
foreach ($config['virtualip']['vip'] as $vipidx => $vip) {
- if ($vip['mode'] == "ipalias" && strstr("$vip['interface'], "_vip")) {
+ if ($vip['mode'] == "ipalias" && strstr($vip['interface'], "_vip")) {
/* Convert to a carp with same properties as its carp version */
$converted = false;
foreach ($config['virtualip']['vip'] as $bvip) {
- if ($bvip['mode'] == "carp" && "{$bvip['interface']}_vip{$bvip['vhid']} == $vip['interface']) {
+ if ($bvip['mode'] == "carp" && "{$bvip['interface']}_vip{$bvip['vhid']}" == $vip['interface']) {
$ipaaddr = $vip['subnet'];
$ipamask = $vip['subnet_bits'];
$config['virtualip']['vip'][$vipidx] = $bvip;
OpenPOWER on IntegriCloud