From a1cab2c7ebe77e83cb091712c18ae8267bdfe1e4 Mon Sep 17 00:00:00 2001 From: Ermal Date: Tue, 27 Apr 2010 13:51:25 +0000 Subject: Ticket #474. Properly check for disabled openvpn configs. --- etc/inc/openvpn.inc | 6 +++--- 1 file 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; } -- cgit v1.1