diff options
author | Phil Davis <phil.davis@inf.org> | 2015-07-21 22:12:05 +0545 |
---|---|---|
committer | Phil Davis <phil.davis@inf.org> | 2015-07-21 22:12:05 +0545 |
commit | 55fae310d03f7c5f1824fff842a45376373e25dd (patch) | |
tree | cce2c937e28a2781be6f4afacf7e41e57f658b5e | |
parent | 775b46fa4ba93e1f076b0593e1045560b48ab925 (diff) | |
download | pfsense-55fae310d03f7c5f1824fff842a45376373e25dd.zip pfsense-55fae310d03f7c5f1824fff842a45376373e25dd.tar.gz |
Captive Portal zoneid upgrade fix var name typo
With the typo, this empty() test would always have been true. So maybe on upgrade some existing captive portal zoneid values have been getting overwritten by this even number counter? Or?
-rw-r--r-- | etc/inc/upgrade_config.inc | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/etc/inc/upgrade_config.inc b/etc/inc/upgrade_config.inc index 188c08f..2174b25 100644 --- a/etc/inc/upgrade_config.inc +++ b/etc/inc/upgrade_config.inc @@ -3438,7 +3438,7 @@ function upgrade_104_to_105() { if (is_array($config['captiveportal'])) { $zoneid = 2; foreach ($config['captiveportal'] as $cpzone => $cpcfg) { - if (empty($cpfg['zoneid'])) { + if (empty($cpcfg['zoneid'])) { $config['captiveportal'][$cpzone]['zoneid'] = $zoneid; $zoneid += 2; } else if ($cpcfg['zoneid'] > 4000) { |