diff options
Diffstat (limited to 'en/downloads')
-rw-r--r-- | en/downloads/get/index.php | 12 |
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. --> |