summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorErmal <eri@pfsense.org>2010-04-27 13:51:25 +0000
committerErmal <eri@pfsense.org>2010-04-27 13:51:25 +0000
commita1cab2c7ebe77e83cb091712c18ae8267bdfe1e4 (patch)
tree9cd050e7a32b4d3d77243c4c96cd0e90703d6af4
parent0648c9688a4f3324c6e90039b5179eb64bde4653 (diff)
downloadpfsense-a1cab2c7ebe77e83cb091712c18ae8267bdfe1e4.zip
pfsense-a1cab2c7ebe77e83cb091712c18ae8267bdfe1e4.tar.gz
Ticket #474. Properly check for disabled openvpn configs.
-rw-r--r--etc/inc/openvpn.inc6
1 files changed, 3 insertions, 3 deletions
diff --git a/etc/inc/openvpn.inc b/etc/inc/openvpn.inc
index b96afad..5fdcca2 100644
--- a/etc/inc/openvpn.inc
+++ b/etc/inc/openvpn.inc
@@ -266,7 +266,7 @@ function openvpn_reconfigure($mode,& $settings) {
if (empty($settings))
return;
- if ($settings['disable'])
+ if (isset($settings['disable']))
return;
/*
@@ -559,7 +559,7 @@ function openvpn_restart($mode, & $settings) {
usleep(250000);
}
- if ($settings['disable'])
+ if (isset($settings['disable']))
return;
/* start the new process */
@@ -607,7 +607,7 @@ function openvpn_resync_csc(& $settings) {
$fpath = $g['varetc_path']."/openvpn-csc/".$settings['common_name'];
- if ($settings['disable']) {
+ if (isset($settings['disable'])) {
unlink_if_exists($fpath);
return;
}
OpenPOWER on IntegriCloud