com web/php: Quiet a notice on the releases page with the current versions array.: releases/index.php
| From: | Adam Harvey | Date: | Thu, 02 Aug 2012 06:18:38 +0000 |
| Subject: | com web/php: Quiet a notice on the releases page with the current versions array.: releases/index.php | ||
| Groups: | php.webmaster | ||
| Request: | Send a blank email to php-webmaster+get-14032@lists.php.net to get a copy of this message | ||
Commit: a6b37ba4c06d2a818d505868ffbf2bff31bfdf25
Author: Adam Harvey <aharvey@php.net> Thu, 2 Aug 2012 14:18:33 +0800
Parents: f18e3d4fe7cb3406f2df41c46ffc585f6e15fe39
Branches: master
Link: http://git.php.net/?p=web/php.git;a=commitdiff;h=a6b37ba4c06d2a818d505868ffbf2bff31bfdf25
Log:
Quiet a notice on the releases page with the current versions array.
Changed paths:
M releases/index.php
Diff:
diff --git a/releases/index.php b/releases/index.php
index f7c6343..9538b2d 100644
--- a/releases/index.php
+++ b/releases/index.php
@@ -123,9 +123,13 @@ function mk_rel($major, $ver, $date, $announcement, $source, $windows, $museum)
echo "<ul>\n";
foreach(array_merge($source, $windows) as $src) {
echo " <li>\n";
- download_link($src["filename"], $src["name"]); echo "<br
/>\n";
- if (isset($src["md5"])) {
- echo '<span class="md5sum">md5: ' .$src["md5"].
"</span>\n";
+ if (isset($src['filename'])) {
+ download_link($src["filename"], $src["name"]); echo "<br
/>\n";
+ if (isset($src["md5"])) {
+ echo '<span class="md5sum">md5: ' .$src["md5"].
"</span>\n";
+ }
+ } else {
+ echo '<a
href="'.$src['link'].'">'.$src['name'].'</a>';
}
echo " </li>\n";
}