summaryrefslogtreecommitdiffstats
path: root/usr/local/www
diff options
context:
space:
mode:
authorErmal Luçi <eri@pfsense.org>2010-02-16 19:47:57 +0000
committerErmal Luçi <eri@pfsense.org>2010-02-16 19:47:57 +0000
commit870318b9a0eb81e79f40abe461e6259f67a62580 (patch)
treef254a05e69bed716e66353a39166eaa985a08451 /usr/local/www
parent3a738983119776d36460cb7aa115f39de68a3b4a (diff)
downloadpfsense-870318b9a0eb81e79f40abe461e6259f67a62580.zip
pfsense-870318b9a0eb81e79f40abe461e6259f67a62580.tar.gz
Fix setting unsetting of disable option for OpenVPN.
Diffstat (limited to 'usr/local/www')
-rw-r--r--usr/local/www/vpn_openvpn_server.php7
1 files changed, 4 insertions, 3 deletions
diff --git a/usr/local/www/vpn_openvpn_server.php b/usr/local/www/vpn_openvpn_server.php
index c0ecede..4617e5c 100644
--- a/usr/local/www/vpn_openvpn_server.php
+++ b/usr/local/www/vpn_openvpn_server.php
@@ -79,7 +79,7 @@ if($_GET['act']=="edit"){
if (isset($id) && $a_server[$id]) {
- $pconfig['disable'] = $a_server[$id]['disable'];
+ $pconfig['disable'] = isset($a_server[$id]['disable']);
$pconfig['mode'] = $a_server[$id]['mode'];
$pconfig['protocol'] = $a_server[$id]['protocol'];
$pconfig['interface'] = $a_server[$id]['interface'];
@@ -257,7 +257,8 @@ if ($_POST) {
else
$server['vpnid'] = openvpn_vpnid_next();
- $server['disable'] = $pconfig['disable'];
+ if ($_POST['disable'] == "yes")
+ $server['disable'] = true;
$server['mode'] = $pconfig['mode'];
$server['protocol'] = $pconfig['protocol'];
list($server['interface'], $server['ipaddr']) = explode ("|",$pconfig['interface']);
@@ -1147,7 +1148,7 @@ function netbios_change() {
$i = 0;
foreach($a_server as $server):
$disabled = "NO";
- if ($server['disable'])
+ if (isset($server['disable']))
$disabled = "YES";
?>
<tr>
OpenPOWER on IntegriCloud