Fix a PHP erorr when a CRL has no certificates

(cherry picked from commit d9064f0b92)
This commit is contained in:
jim-p 2018-09-12 14:16:52 -04:00
parent cf66932544
commit 3d9d84d4bb

View File

@ -633,6 +633,9 @@ if ($act == "new" || $act == gettext("Save") || $input_errors) {
foreach ($ca_crl_map[$ca['refid']] as $crl):
$tmpcrl = lookup_crl($crl);
$internal = is_crl_internal($tmpcrl);
if ($internal && (!isset($tmpcrl['cert']) || empty($tmpcrl['cert'])) ) {
$tmpcrl['cert'] = array();
}
$inuse = crl_in_use($tmpcrl['refid']);
?>
<tr>