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(
} else {
$issuer_name = "<em>" . gettext("external") . "</em>";
}
$certcount = 0;
if (isset($ca['caref'])) {
$issuer_ca = lookup_ca($ca['caref']);
if ($issuer_ca) {
$issuer_name = $issuer_ca['descr'];
}
}
$certcount = 0;
foreach ($config['cert'] as $cert) {
if ($cert['caref'] == $ca['refid']) {
$certcount++;
}
}
foreach ($a_ca as $cert) {
if (isset($cert['caref'])) {
if ($cert['caref'] == $ca['refid']) {
$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