Properly check if this is in use.

This commit is contained in:
jim-p 2010-09-21 16:08:36 -04:00
parent 57d1853efd
commit cd9f13e02d

View File

@ -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;