1
0
mirror of https://github.com/php/web-php.git synced 2026-03-23 23:02:13 +01:00

Only display checksums which are available

This commit is contained in:
Sara Golemon
2017-06-27 22:18:26 -04:00
parent 7018747e6f
commit 60560eb3a8

View File

@@ -60,8 +60,10 @@ site_header("Downloads",
<li>
<?php download_link($rel['filename'], $rel['filename']); ?>
<span class="releasedate"><?php echo date('d M Y', strtotime($rel['date'])); ?></span>
<span class="md5sum"><?php echo $rel['md5']; ?></span>
<span class="sha256"><?php echo $rel['sha256']; ?></span>
<?php
if (isset($rel['md5'])) echo '<span class="md5sum">', $rel['md5'], '</span>';
if (isset($rel['sha256'])) echo '<span class="sha256">', $rel['sha256'], '</span>';
?>
<?php if (isset($rel['note']) && $rel['note']): ?>
<p>
<strong>Note:</strong>