Commit f1f331b9 authored by Ad Schellevis's avatar Ad Schellevis

(legacy) fix unitialized var in certs.inc

parent 54d0c429
......@@ -438,7 +438,7 @@ function is_openvpn_client_cert($certref)
}
foreach ($config['openvpn']['openvpn-client'] as $ovpnc) {
if ($ovpnc['certref'] == $certref) {
if (isset($ovpnc['certref']) && $ovpnc['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