com web/php: Only display checksums which are available: downloads.php
| From: | Sara Golemon | Date: | Wed, 28 Jun 2017 02:18:26 +0000 |
| Subject: | com web/php: Only display checksums which are available: downloads.php | ||
| Groups: | php.webmaster | ||
| Request: | Send a blank email to php-webmaster+get-26120@lists.php.net to get a copy of this message | ||
Commit: 60560eb3a82d2211741d92d00eb4beaca73dfba0
Author: Sara Golemon <pollita@php.net> Tue, 27 Jun 2017 22:18:26 -0400
Parents: 7018747e6f57316591f138614cf311901f76e844
Branches: master
Link: http://git.php.net/?p=web/php.git;a=commitdiff;h=60560eb3a82d2211741d92d00eb4beaca73dfba0
Log:
Only display checksums which are available
Changed paths:
M downloads.php
Diff:
diff --git a/downloads.php b/downloads.php
index c304269..d0a15c0 100644
--- a/downloads.php
+++ b/downloads.php
@@ -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>