cvs: phpweb /include mirrortable.inc
| From: | Jacques Marneweck | Date: | Thu, 15 May 2003 21:35:58 +0000 |
| Subject: | cvs: phpweb /include mirrortable.inc | ||
| Groups: | php.mirrors | ||
| Request: | Send a blank email to php-mirrors+get-17721@lists.php.net to get a copy of this message | ||
jacques Thu May 15 17:35:58 2003 EDT
Modified files:
/phpweb/include mirrortable.inc
Log:
* Don't process country "xx" because it does not exist and on misconfigured
servers (i.e. not in the active mirrors list) with E_NOTICE spews a
warning.
--jm
Index: phpweb/include/mirrortable.inc
diff -u phpweb/include/mirrortable.inc:1.2 phpweb/include/mirrortable.inc:1.3
--- phpweb/include/mirrortable.inc:1.2 Tue May 13 20:21:41 2003
+++ phpweb/include/mirrortable.inc Thu May 15 17:35:58 2003
@@ -1,5 +1,5 @@
<?php
-/* $Id: mirrortable.inc,v 1.2 2003/05/14 00:21:41 jacques Exp $ */
+/* $Id: mirrortable.inc,v 1.3 2003/05/15 21:35:58 jacques Exp $ */
/*
This file includes functions to find close mirrors and list
@@ -88,7 +88,7 @@
if (!empty($cnomatch) && $country == $cnomatch) { continue; }
// Print out a country header, if a new country is found
- if ($prevcc != $country) {
+ if ($prevcc != $country && $country != "xx") {
echo '<tr><td colspan="' . ($cnf['datacols'] + 1) .
'"></td></tr>' . "\n";
echo '<tr bgcolor="#cccccc"><td width="40"
align="center">';
print_image(