aboutsummaryrefslogtreecommitdiffstats
path: root/en/downloads
diff options
context:
space:
mode:
authorfilip <filip.komar@gmail.com>2016-05-06 22:49:44 +0200
committerfilip <filip.komar@gmail.com>2016-05-06 22:49:44 +0200
commitbc7e9bf2f26b259ebe13e6909dba27f2f2f50ac3 (patch)
tree13eb2d4ff02e537caf74a1bd9e1c75bb21f65156 /en/downloads
parentfbf3e7ad7e500cef0c50488a61c094a28bd58972 (diff)
downloadwww-bc7e9bf2f26b259ebe13e6909dba27f2f2f50ac3.tar
www-bc7e9bf2f26b259ebe13e6909dba27f2f2f50ac3.tar.gz
www-bc7e9bf2f26b259ebe13e6909dba27f2f2f50ac3.tar.bz2
www-bc7e9bf2f26b259ebe13e6909dba27f2f2f50ac3.tar.xz
www-bc7e9bf2f26b259ebe13e6909dba27f2f2f50ac3.zip
don't show checksum if they don't exist
Diffstat (limited to 'en/downloads')
-rw-r--r--en/downloads/get/index.php12
1 files changed, 10 insertions, 2 deletions
diff --git a/en/downloads/get/index.php b/en/downloads/get/index.php
index 9b1476893..4e673d789 100644
--- a/en/downloads/get/index.php
+++ b/en/downloads/get/index.php
@@ -218,9 +218,17 @@ if (!isset($_SERVER['APP_MODE']) || $_SERVER['APP_MODE'] == 'prod') {
<pre class="term">
<?php if (strlen($product['md5'])): ?>$ md5sum <?php echo basename($download), "\n<strong>", $product['md5'], "</strong>\n"; endif; ?>
-<?php if (strlen($product['sha1'])): ?>$ sha1sum <?php echo basename($download), "\n<strong>", $product['sha1'], "</strong>\n"; endif; ?>
+<?php
+if (array_key_exists('sha1', $product)) {
+ if (strlen($product['sha1'])): ?>$ sha1sum <?php echo basename($download), "\n<strong>", $product['sha1'], "</strong>\n"; endif;
+}
+?>
-<?php if (strlen($product['sha512'])): ?>$ sha512sum <?php echo basename($download), "\n<strong>", $product['sha512'], "</strong>\n"; endif; ?>
+<?php
+if (array_key_exists('sha512', $product)) {
+ if (strlen($product['sha512'])): ?>$ sha512sum <?php echo basename($download), "\n<strong>", $product['sha512'], "</strong>\n"; endif;
+}
+?>
</pre>
<p><?php _g('If checksums do not match, <strong>DO NOT use this ISO</strong>. Double-check and try to download again.'); ?></p>
<!-- TODO (rda): add direct download links to checksum and signature files as a backup. -->