changeset 896:7cc73b376945

Cleanups, sync.
author Matti Hamalainen <ccr@tnsp.org>
date Mon, 22 Mar 2010 12:20:38 +0000
parents a1bc38883630
children dbef1b4f074a
files www/info.php
diffstat 1 files changed, 5 insertions(+), 9 deletions(-) [+]
line wrap: on
line diff
--- a/www/info.php	Mon Mar 22 12:17:23 2010 +0000
+++ b/www/info.php	Mon Mar 22 12:20:38 2010 +0000
@@ -66,8 +66,8 @@
 
 /* Print table of wizards
  */
-while (list($key, $value) = each($locTable)) {
-  while (list($ik, $iv) = each($value["coders"])) {
+foreach ($locTable as $key => $value) {
+  foreach ($value["coders"] as $ik => $iv) {
     if (!isset($wizTable[$iv]))
       $wizTable[$iv] = array("name" => $iv);
     
@@ -78,13 +78,11 @@
   }
 }
 
-reset($wizTable);
 if (count($wizTable) > 0) {
   /* Make alphabetical table
    */
-  while (list($key, $value) = each($wizTable)) {
+  foreach ($wizTable as $key => $value)
     $alphaTable[$key[0]][] = $value;
-  }
 
   ksort($alphaTable, SORT_STRING);
 
@@ -93,16 +91,14 @@
    */
   $totalWiz = 0;
   $maxRow = 6;
-  while (list($key, $value) = each($alphaTable)) {
+  foreach ($alphaTable as $key => $value) {
     if (count($value) > 0) {
       asort($value);
       echo "<h3><a name=\"".strtolower($key)."\"></a>".$key."</h3>\n";
       echo "<table class=\"loc\" width=\"95%\">\n";
       $n = 0;
       while (list($ik, $iv) = each($value)) {
-        if ($n == 0) {
-          echo " <tr>\n";
-        }
+        if ($n == 0) echo " <tr>\n";
         
         $totalWiz++;