Commit b4bbf01b authored by Franco Fichtner's avatar Franco Fichtner

health: obvious isset candidate

(cherry picked from commit 7c3cef57)
parent c1ffbbd5
......@@ -296,7 +296,7 @@ function enable_rrd_graphing()
mwexec("$rrdtool update $rrddbpath$ifname$vpnusers N:U");
}
if (is_array($config['openvpn']['openvpn-server'])) {
if (isset($config['openvpn']['openvpn-server'])) {
foreach($config['openvpn']['openvpn-server'] as $server) {
if ("ovpns{$server['vpnid']}" == $ifname) {
$port = $server['local_port'];
......
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