Certificates - Better empty date handling in agent ui

This commit is contained in:
wrongecho 2025-11-06 14:44:03 +00:00
parent 2f28f96f8d
commit f772ef2efd
1 changed files with 4 additions and 2 deletions

View File

@ -249,8 +249,10 @@ $num_rows = mysqli_fetch_row(mysqli_query($mysqli, "SELECT FOUND_ROWS()"));
<td><?php echo $certificate_issued_by; ?></td>
<td>
<div><?php echo $certificate_expire; ?></div>
<div><small><?php echo $certificate_expire_ago; ?></small></div>
<div><?php echo $certificate_expire ?: '-'; ?></div>
<?php if (!empty($certificate_expire)) { ?>
<div><small><?php echo $certificate_expire_ago; ?></small></div>
<?php } ?>
</td>
<?php if (!$client_url) { ?>
<td><a href="certificates.php?client_id=<?php echo $client_id; ?>"><?php echo $client_name; ?></a></td>