summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorjim-p <jimp@pfsense.org>2012-08-01 14:53:45 -0400
committerjim-p <jimp@pfsense.org>2012-08-01 14:53:45 -0400
commitf7c8f633b608ff30e63ff202567a93e15abb72f0 (patch)
tree18d05eb07e76942fa233dec11de6b1b26d12a4e3
parenta0d1a4678e02dcbea42d24d1f731aad4007486d3 (diff)
downloadpfsense-f7c8f633b608ff30e63ff202567a93e15abb72f0.zip
pfsense-f7c8f633b608ff30e63ff202567a93e15abb72f0.tar.gz
Ensure this gets a set default value or things can break
-rw-r--r--etc/inc/upgrade_config.inc3
1 files changed, 3 insertions, 0 deletions
diff --git a/etc/inc/upgrade_config.inc b/etc/inc/upgrade_config.inc
index 9c72081..f7ae95d 100644
--- a/etc/inc/upgrade_config.inc
+++ b/etc/inc/upgrade_config.inc
@@ -2608,6 +2608,9 @@ function upgrade_077_to_078() {
$radarr['server'] = $radsvr;
$config['pptpd']['radius'] = $radarr;
}
+ if (is_array($config['pptpd'])) {
+ $config['pptpd']['n_pptp_units'] = empty($config['pptpd']['n_pptp_units']) ? 16 : $config['pptpd']['n_pptp_units'];
+ }
}
function upgrade_078_to_079() {
global $g;
OpenPOWER on IntegriCloud