Commit 74d908fc authored by Ad Schellevis's avatar Ad Schellevis

(legacy, vpn) some setups seem to have empty mode tags

parent 4351b2a9
......@@ -138,7 +138,7 @@ function vpn_pptpd_configure()
killbypid('/var/run/pptp-vpn.pid', 'TERM', true);
mwexec('rm -rf /var/etc/pptp-vpn');
if (!isset($pptpdcfg['mode']) || $pptpdcfg['mode'] == 'off') {
if (empty($pptpdcfg['mode']) || $pptpdcfg['mode'] == 'off') {
return 0;
}
......@@ -351,7 +351,7 @@ function vpn_pppoe_configure(&$pppoecfg)
killbypid("/var/run/pppoe{$pppoecfg['pppoeid']}-vpn.pid", 'TERM', true);
mwexec("rm -rf /var/etc/pppoe{$pppoecfg['pppoeid']}-vpn");
if (!isset($pppoecfg['mode']) || $pppoecfg['mode'] == 'off') {
if (empty($pppoecfg['mode']) || $pppoecfg['mode'] == 'off') {
return 0;
}
......@@ -520,7 +520,7 @@ function vpn_l2tp_configure()
return 0;
}
if (!isset($l2tpcfg['mode']) || $l2tpcfg['mode'] == 'off') {
if (empty($l2tpcfg['mode']) || $l2tpcfg['mode'] == 'off') {
return 0;
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment