Domains - only show time to expire when there is an expiry date set (otherwise it shows epoch 56 years ago)

This commit is contained in:
wrongecho 2025-11-06 12:19:28 +00:00
parent 09f3bfd8f4
commit a9a5850fd4
1 changed files with 3 additions and 1 deletions

View File

@ -308,7 +308,9 @@ $num_rows = mysqli_fetch_row(mysqli_query($mysqli, "SELECT FOUND_ROWS()"));
<td><?php echo $domain_mailhost_name_display; ?></td>
<td>
<div><?php echo $domain_expire; ?></div>
<div><small><?php echo $domain_expire_ago; ?></small></div>
<?php if (!empty($domain_expire)) { ?>
<div><small><?php echo $domain_expire_ago; ?></small></div>
<?php } ?>
</td>
<?php if (!$client_url) { ?>
<td><a href="domains.php?client_id=<?php echo $client_id; ?>"><?php echo $client_name; ?></a></td>