Commit 7aa0cd11 authored by Franco Fichtner's avatar Franco Fichtner

trust: fix cert count in ca overview

parent 84152de6
...@@ -726,19 +726,24 @@ $main_buttons = array( ...@@ -726,19 +726,24 @@ $main_buttons = array(
} else { } else {
$issuer_name = "<em>" . gettext("external") . "</em>"; $issuer_name = "<em>" . gettext("external") . "</em>";
} }
$certcount = 0;
if (isset($ca['caref'])) { if (isset($ca['caref'])) {
$issuer_ca = lookup_ca($ca['caref']); $issuer_ca = lookup_ca($ca['caref']);
if ($issuer_ca) { if ($issuer_ca) {
$issuer_name = $issuer_ca['descr']; $issuer_name = $issuer_ca['descr'];
} }
}
$certcount = 0;
foreach ($config['cert'] as $cert) { foreach ($config['cert'] as $cert) {
if ($cert['caref'] == $ca['refid']) { if ($cert['caref'] == $ca['refid']) {
$certcount++; $certcount++;
} }
} }
foreach ($a_ca as $cert) { foreach ($a_ca as $cert) {
if (isset($cert['caref'])) {
if ($cert['caref'] == $ca['refid']) { if ($cert['caref'] == $ca['refid']) {
$certcount++; $certcount++;
} }
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment