Commit f1c3b22b authored by Franco Fichtner's avatar Franco Fichtner

rc: proper isset() usage in openvpn code

parent 5e688567
...@@ -72,7 +72,7 @@ if (file_exists('/var/run/booting')) { ...@@ -72,7 +72,7 @@ if (file_exists('/var/run/booting')) {
/* Input argument is a comma-separated list of gateway names, blank or "all". */ /* Input argument is a comma-separated list of gateway names, blank or "all". */
$argument = trim($argv[1], " \n"); $argument = trim($argv[1], " \n");
if(is_array($config['openvpn']['openvpn-server']) || is_array($config['openvpn']['openvpn-client'])) { if (isset($config['openvpn']['openvpn-server']) || isset($config['openvpn']['openvpn-client'])) {
if (empty($argument) || $argument == "all") { if (empty($argument) || $argument == "all") {
$argument = "all"; $argument = "all";
$log_text = "all"; $log_text = "all";
......
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