From cd9f13e02d6fc4b5102deb94adbd9148ea5ce286 Mon Sep 17 00:00:00 2001 From: jim-p Date: Tue, 21 Sep 2010 16:08:36 -0400 Subject: [PATCH] Properly check if this is in use. --- etc/inc/certs.inc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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;