mirror of
https://github.com/pfsense/pfsense.git
synced 2025-10-26 11:38:35 +00:00
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?
This commit is contained in:
parent
685c323cb1
commit
2abf33edb2
@ -3280,7 +3280,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) {
|
||||
|
||||
Loading…
Reference in New Issue
Block a user