Commit 52dce31b authored by Ad Schellevis's avatar Ad Schellevis Committed by Franco Fichtner

(legacy) fix uninitialized array element in certs.inc

parent c57f1b8c
......@@ -421,7 +421,7 @@ function is_openvpn_server_cert($certref)
}
foreach ($config['openvpn']['openvpn-server'] as $ovpns) {
if ($ovpns['certref'] == $certref) {
if (isset($ovpns['certref']) && $ovpns['certref'] == $certref) {
return true;
}
}
......
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