cvs: php-master-web /manage mirrors.php
| From: | Gabor Hojtsy | Date: | Sat, 07 Jun 2003 18:22:25 +0000 |
| Subject: | cvs: php-master-web /manage mirrors.php | ||
| Groups: | php.mirrors | ||
| Request: | Send a blank email to php-mirrors+get-18580@lists.php.net to get a copy of this message | ||
goba Sat Jun 7 14:22:25 2003 EDT
Modified files:
/php-master-web/manage mirrors.php
Log:
Only display the last error message if available
Index: php-master-web/manage/mirrors.php
diff -u php-master-web/manage/mirrors.php:1.47 php-master-web/manage/mirrors.php:1.48
--- php-master-web/manage/mirrors.php:1.47 Sat Jun 7 13:40:49 2003
+++ php-master-web/manage/mirrors.php Sat Jun 7 14:22:24 2003
@@ -189,7 +189,18 @@
?>
<table>
<tr>
- <th colspan="2"><?php if (!$row['up'] ||
!$row['current']) { echo '<p class="error">This mirror is
automatically disabled<br />Last error: ' . $row['ocmt'] .
'</p>'; } else { echo " "; } ?></th>
+ <th colspan="2">
+ <?php
+ if (!$row['up'] || !$row['current']) {
+ echo '<p class="error">This mirror is automatically
disabled';
+ $row['ocmt'] = trim($row['ocmt']);
+ if (!empty($row['ocmt'])) {
+ echo '<br />Last error: ' . $row['ocmt'];
+ }
+ echo '</p>';
+ } else { echo " "; }
+ ?>
+ </th>
</tr>
<tr>
<th align="right">Mirror added:</th>