diff options
author | Dmitriy K. <levantin@mail.nnov.ru> | 2014-06-17 11:38:05 +0400 |
---|---|---|
committer | Dmitriy K. <levantin@mail.nnov.ru> | 2014-06-17 11:38:05 +0400 |
commit | c7264382be756d42a8a679410f5ff29d555ad4ca (patch) | |
tree | fc9dc70a560ce7a05545a85a324d0b01fda25c73 | |
parent | caf58ced52067776e57e48dac64bc43d7f0273a2 (diff) | |
download | pfsense-c7264382be756d42a8a679410f5ff29d555ad4ca.zip pfsense-c7264382be756d42a8a679410f5ff29d555ad4ca.tar.gz |
Default values for verb if it is not set when edit
-rw-r--r-- | usr/local/www/vpn_openvpn_client.php | 5 | ||||
-rw-r--r-- | usr/local/www/vpn_openvpn_server.php | 5 |
2 files changed, 8 insertions, 2 deletions
diff --git a/usr/local/www/vpn_openvpn_client.php b/usr/local/www/vpn_openvpn_client.php index f80694b..7123302 100644 --- a/usr/local/www/vpn_openvpn_client.php +++ b/usr/local/www/vpn_openvpn_client.php @@ -158,7 +158,10 @@ if($_GET['act']=="edit"){ $pconfig['no_tun_ipv6'] = $a_client[$id]['no_tun_ipv6']; $pconfig['route_no_pull'] = $a_client[$id]['route_no_pull']; $pconfig['route_no_exec'] = $a_client[$id]['route_no_exec']; - $pconfig['verbosity_level'] = $a_client[$id]['verbosity_level']; + if (isset($a_client[$id]['verbosity_level'])) + $pconfig['verbosity_level'] = $a_client[$id]['verbosity_level']; + else + $pconfig['verbosity_level'] = 1; // Default verbosity is 1 } } diff --git a/usr/local/www/vpn_openvpn_server.php b/usr/local/www/vpn_openvpn_server.php index 7f92686..577a988 100644 --- a/usr/local/www/vpn_openvpn_server.php +++ b/usr/local/www/vpn_openvpn_server.php @@ -209,7 +209,10 @@ if($_GET['act']=="edit"){ // New features $pconfig['no_tun_ipv6'] = $a_server[$id]['no_tun_ipv6']; - $pconfig['verbosity_level'] = $a_server[$id]['verbosity_level']; + if (isset($a_server[$id]['verbosity_level'])) + $pconfig['verbosity_level'] = $a_server[$id]['verbosity_level']; + else + $pconfig['verbosity_level'] = 1; // Default verbosity is 1 } } if ($_POST) { |