diff --git a/etc/inc/certs.inc b/etc/inc/certs.inc index 2825fe3d20..15a21b847d 100644 --- a/etc/inc/certs.inc +++ b/etc/inc/certs.inc @@ -542,7 +542,7 @@ function is_openvpn_server_crl($crlref) { if (!is_array($config['openvpn']['openvpn-server'])) return; foreach ($config['openvpn']['openvpn-server'] as $ovpns) { - if ($ovpns['crlref'] == $crlref) + if (!empty($ovpns['crlref']) && ($ovpns['crlref'] == $crlref)) return true; } return false;