cvs: phpweb /include layout.inc
| From: | Hojtsy Gabor | Date: | Mon, 12 Mar 2001 18:17:03 +0000 |
| Subject: | cvs: phpweb /include layout.inc | ||
| Groups: | php.mirrors | ||
| Request: | Send a blank email to php-mirrors+get-4433@lists.php.net to get a copy of this message | ||
goba Mon Mar 12 10:17:03 2001 EDT
Modified files:
/phpweb/include layout.inc
Log:
reset $MIRRORS in case of any other feature used the array before...
Index: phpweb/include/layout.inc
diff -u phpweb/include/layout.inc:1.23 phpweb/include/layout.inc:1.24
--- phpweb/include/layout.inc:1.23 Sun Mar 11 03:35:58 2001
+++ phpweb/include/layout.inc Mon Mar 12 10:17:03 2001
@@ -1,5 +1,5 @@
<?php
-/* $Id: layout.inc,v 1.23 2001/03/11 11:35:58 goba Exp $ */
+/* $Id: layout.inc,v 1.24 2001/03/12 18:17:03 goba Exp $ */
# spacer()
@@ -319,7 +319,8 @@
print_link('/mirrors.php', 'mirror sites:', false,
'class="small"');
echo " <select class=\"small\" name=\"country\"
onchange=\"gotomirror(this.form)\">\n";
echo "<option value=\"-1\">--\n";
- while (list($url,$mirror) = each($MIRRORS)) {
+ reset($MIRRORS);
+ while (list($url,$mirror) = each($MIRRORS)) {
if ($mirror[4] == 1) { /* only list full mirrors here */
echo "<option value=\"$url\">".$COUNTRIES[$mirror[0]]."
($mirror[1])\n";
}