Commit 7b511f9a authored by Franco Fichtner's avatar Franco Fichtner

rc: proper isset() usage in openvpn code

parent 1a29ed2f
......@@ -72,7 +72,7 @@ if (file_exists('/var/run/booting')) {
/* Input argument is a comma-separated list of gateway names, blank or "all". */
$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") {
$argument = "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