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:
Phil Davis 2015-07-21 22:12:05 +05:45 committed by Renato Botelho
parent 685c323cb1
commit 2abf33edb2

View File

@ -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) {