mirror of
https://github.com/pfsense/pfsense.git
synced 2025-10-26 11:38:35 +00:00
Properly check if this is in use.
This commit is contained in:
parent
57d1853efd
commit
cd9f13e02d
@ -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;
|
||||
|
||||
Loading…
Reference in New Issue
Block a user