Commit afad9826 authored by Franco Fichtner's avatar Franco Fichtner

trust: fix cert count in ca overview

(cherry picked from commit 7aa0cd11)
parent c32f96de
......@@ -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'];
}
foreach ($config['cert'] as $cert) {
if ($cert['caref'] == $ca['refid']) {
$certcount++;
}
}
$certcount = 0;
foreach ($config['cert'] as $cert) {
if ($cert['caref'] == $ca['refid']) {
$certcount++;
}
foreach ($a_ca as $cert) {
}
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